Home
last modified time | relevance | path

Searched refs:pref_value (Results 1 – 25 of 25) sorted by relevance

/external/chromium_org/chrome/browser/policy/
Dmanaged_bookmarks_policy_handler_unittest.cc72 const base::Value* pref_value = NULL; in TEST_F() local
74 store_->GetValue(bookmarks::prefs::kManagedBookmarks, &pref_value)); in TEST_F()
75 ASSERT_TRUE(pref_value); in TEST_F()
106 EXPECT_TRUE(pref_value->Equals(expected.get())); in TEST_F()
145 const base::Value* pref_value = NULL; in TEST_F() local
147 store_->GetValue(bookmarks::prefs::kManagedBookmarks, &pref_value)); in TEST_F()
148 ASSERT_TRUE(pref_value); in TEST_F()
156 EXPECT_TRUE(pref_value->Equals(expected.get())); in TEST_F()
187 const base::Value* pref_value = NULL; in TEST_F() local
189 store_->GetValue(bookmarks::prefs::kManagedBookmarks, &pref_value)); in TEST_F()
[all …]
/external/chromium_org/components/data_reduction_proxy/browser/
Ddata_reduction_proxy_statistics_prefs.cc67 int64 pref_value = pref_service_->GetInt64(pref); in InitInt64Pref() local
68 pref_map_[pref] = pref_value; in InitInt64Pref()
72 scoped_ptr<base::ListValue> pref_value = scoped_ptr<base::ListValue>( in InitListPref() local
74 list_pref_map_.add(pref, pref_value.Pass()); in InitListPref()
86 int64 pref_value) { in SetInt64() argument
88 pref_service_->SetInt64(pref_path, pref_value); in SetInt64()
93 pref_map_[pref_path] = pref_value; in SetInt64()
Ddata_reduction_proxy_statistics_prefs.h53 void SetInt64(const char* pref_path, int64 pref_value);
Ddata_reduction_proxy_settings.cc69 std::string pref_value; in GetInt64PrefValue() local
70 bool rv = list_value.GetString(index, &pref_value); in GetInt64PrefValue()
73 rv = base::StringToInt64(pref_value, &val); in GetInt64PrefValue()
/external/chromium_org/chrome/utility/media_galleries/
Ditunes_pref_parser_win.cc43 std::string pref_value; in FindLibraryLocationInPrefXml() local
44 if (!reader.ReadElementContent(&pref_value)) in FindLibraryLocationInPrefXml()
49 if (!base::Base64Decode(base::CollapseWhitespaceASCII(pref_value, true), in FindLibraryLocationInPrefXml()
/external/chromium_org/chrome/browser/ui/webui/options/
Doptions_browsertest.cc62 const base::Value* pref_value; in HandleSetPref() local
63 ASSERT_TRUE(args->Get(1, &pref_value)); in HandleSetPref()
65 browser()->profile()->GetPrefs()->Set(pref_name.c_str(), *pref_value); in HandleSetPref()
/external/chromium_org/chrome/browser/chromeos/settings/
Dstub_cros_settings_provider_unittest.cc85 base::StringValue pref_value("testing"); in TEST_F() local
87 provider_->Set(kReleaseChannel, pref_value); in TEST_F()
88 AssertPref(kReleaseChannel, &pref_value); in TEST_F()
Dcros_settings_unittest.cc57 const base::Value* pref_value = settings_.GetPref(pref); in FetchPref() local
59 ASSERT_TRUE(pref_value); in FetchPref()
60 ASSERT_TRUE(expected_value->Equals(pref_value)); in FetchPref()
62 ASSERT_FALSE(pref_value); in FetchPref()
/external/chromium_org/chrome/browser/extensions/
Dextension_management_test_util.h83 const base::Value* pref_value = in ExtensionManagementPrefUpdater() local
85 if (pref_value) { in ExtensionManagementPrefUpdater()
87 pref_value->GetAsDictionary(&dict_value); in ExtensionManagementPrefUpdater()
/external/chromium_org/chrome/installer/util/
Dchrome_app_host_operations.cc26 bool pref_value; in ReadOptions() local
27 if (prefs.GetBool(master_preferences::kMultiInstall, &pref_value) && in ReadOptions()
28 pref_value) { in ReadOptions()
Dchrome_frame_operations.cc30 bool pref_value; in ReadOptions() local
34 if (prefs.GetBool(scan->pref_name, &pref_value) && pref_value) in ReadOptions()
Dchrome_browser_operations.cc29 bool pref_value; in ReadOptions() local
31 if (prefs.GetBool(master_preferences::kMultiInstall, &pref_value) && in ReadOptions()
32 pref_value) { in ReadOptions()
Dmaster_preferences.cc324 scoped_ptr<base::Value> pref_value; in ExtractPrefString() local
325 if (master_dictionary_->Remove(name, &pref_value)) { in ExtractPrefString()
326 if (!pref_value->GetAsString(&result)) in ExtractPrefString()
/external/chromium_org/chrome/browser/ui/webui/options/chromeos/
Dcore_chromeos_options_handler.cc67 base::Value* CreateUsersWhitelist(const base::Value *pref_value) { in CreateUsersWhitelist() argument
69 static_cast<const base::ListValue*>(pref_value); in CreateUsersWhitelist()
167 const base::Value* pref_value = CrosSettings::Get()->GetPref(pref_name); in FetchPref() local
168 if (!pref_value) in FetchPref()
175 dict->Set("value", CreateUsersWhitelist(pref_value)); in FetchPref()
177 dict->Set("value", pref_value->DeepCopy()); in FetchPref()
/external/chromium_org/chrome/browser/prefs/
Dincognito_mode_prefs.cc46 int pref_value = pref_service->GetInteger(prefs::kIncognitoModeAvailability); in GetAvailability() local
48 bool valid = IntToAvailability(pref_value, &result); in GetAvailability()
Dsession_startup_pref.h79 static SessionStartupPref::Type PrefValueToType(int pref_value);
Dsession_startup_pref.cc294 SessionStartupPref::Type SessionStartupPref::PrefValueToType(int pref_value) { in PrefValueToType() argument
295 switch (pref_value) { in PrefValueToType()
/external/chromium_org/chrome/common/importer/
Dfirefox_importer_utils_unittest.cc19 std::string pref_value; member
98 GetPrefsJsValueCases[i].pref_value, in TEST()
/external/chromium_org/chrome/browser/ui/webui/chromeos/
Dslow_ui.cc120 base::FundamentalValue pref_value(enabled); in UpdatePage() local
121 web_ui()->CallJavascriptFunction(kJsApiTracingPrefChanged, pref_value); in UpdatePage()
/external/chromium_org/chrome/browser/ui/ash/launcher/
Dchrome_launcher_controller_unittest.cc458 void InsertPrefValue(base::ListValue* pref_value, in InsertPrefValue() argument
463 pref_value->Insert(index, entry); in InsertPrefValue()
1821 base::ListValue pref_value; in TEST_F() local
1823 pref_value.DeepCopy()); in TEST_F()
1828 InsertPrefValue(&pref_value, 0, extension1_->id()); in TEST_F()
1829 InsertPrefValue(&pref_value, 1, extension2_->id()); in TEST_F()
1830 InsertPrefValue(&pref_value, 2, extension4_->id()); in TEST_F()
1832 pref_value.DeepCopy()); in TEST_F()
1839 InsertPrefValue(&pref_value, 2, extension3_->id()); in TEST_F()
1840 InsertPrefValue(&pref_value, 2, extension3_->id()); in TEST_F()
[all …]
Dchrome_launcher_controller.cc1211 const char* pref_value = NULL; in OnShelfAlignmentChanged() local
1214 pref_value = ash::kShelfAlignmentBottom; in OnShelfAlignmentChanged()
1217 pref_value = ash::kShelfAlignmentLeft; in OnShelfAlignmentChanged()
1220 pref_value = ash::kShelfAlignmentRight; in OnShelfAlignmentChanged()
1223 pref_value = ash::kShelfAlignmentTop; in OnShelfAlignmentChanged()
1227 profile_->GetPrefs(), root_window, prefs::kShelfAlignment, pref_value); in OnShelfAlignmentChanged()
1231 profile_->GetPrefs()->SetString(prefs::kShelfAlignmentLocal, pref_value); in OnShelfAlignmentChanged()
1232 profile_->GetPrefs()->SetString(prefs::kShelfAlignment, pref_value); in OnShelfAlignmentChanged()
/external/chromium_org/chrome/browser/ui/prefs/
Dprefs_tab_helper.cc292 const std::string& pref_value) { in OverrideFontFamily() argument
310 (*map)[script] = base::UTF8ToUTF16(pref_value); in OverrideFontFamily()
598 std::string pref_value = prefs->GetString(pref_name.c_str()); in OnFontFamilyPrefChanged() local
599 if (pref_value.empty()) { in OnFontFamilyPrefChanged()
/external/chromium_org/chrome/browser/chromeos/attestation/
Dplatform_verification_flow.cc419 bool* pref_value) { in GetDomainPref() argument
429 if (pref_value) in GetDomainPref()
430 *pref_value = (setting == CONTENT_SETTING_ALLOW); in GetDomainPref()
Dplatform_verification_flow.h256 bool* pref_value);
/external/chromium_org/chrome/browser/devtools/device/
Ddevtools_android_bridge.cc925 const base::Value* pref_value = pref->GetValue(); in CreateDeviceProviders() local
928 if (pref_value->GetAsBoolean(&enabled) && enabled) { in CreateDeviceProviders()