Home
last modified time | relevance | path

Searched refs:extension_pref (Results 1 – 12 of 12) sorted by relevance

/external/chromium/chrome/browser/extensions/
Dextension_proxy_api.cc61 Value* ProxyPrefTransformer::ExtensionToBrowserPref(const Value* extension_pref, in ExtensionToBrowserPref() argument
66 CHECK(extension_pref->IsType(Value::TYPE_DICTIONARY)); in ExtensionToBrowserPref()
68 static_cast<const DictionaryValue*>(extension_pref); in ExtensionToBrowserPref()
108 scoped_ptr<DictionaryValue> extension_pref(new DictionaryValue); in BrowserToExtensionPref() local
110 extension_pref->SetString(keys::kProxyConfigMode, in BrowserToExtensionPref()
126 extension_pref->Set(keys::kProxyConfigPacScript, pac_dict); in BrowserToExtensionPref()
134 extension_pref->Set(keys::kProxyConfigRules, proxy_rules_dict); in BrowserToExtensionPref()
140 return extension_pref.release(); in BrowserToExtensionPref()
Dextension_proxy_api_helpers_unittest.cc272 scoped_ptr<DictionaryValue> extension_pref(CreateProxyRulesDict(config)); in TEST() local
273 ASSERT_TRUE(extension_pref.get()); in TEST()
288 EXPECT_TRUE(Value::Equals(expected.get(), extension_pref.get())); in TEST()
296 scoped_ptr<DictionaryValue> extension_pref(CreatePacScriptDict(config)); in TEST() local
297 ASSERT_TRUE(extension_pref.get()); in TEST()
302 EXPECT_TRUE(Value::Equals(expected.get(), extension_pref.get())); in TEST()
310 scoped_ptr<DictionaryValue> extension_pref(CreatePacScriptDict(config)); in TEST() local
311 ASSERT_TRUE(extension_pref.get()); in TEST()
316 EXPECT_TRUE(Value::Equals(expected.get(), extension_pref.get())); in TEST()
Dextension_preference_api.cc26 const char* extension_pref; member
74 virtual Value* ExtensionToBrowserPref(const Value* extension_pref, in ExtensionToBrowserPref() argument
76 return extension_pref->DeepCopy(); in ExtensionToBrowserPref()
116 bool FindBrowserPrefForExtensionPref(const std::string& extension_pref, in FindBrowserPrefForExtensionPref() argument
120 mapping_.find(extension_pref); in FindBrowserPrefForExtensionPref()
158 mapping_[kPrefMapping[i].extension_pref] = in PrefMapping()
163 kPrefMapping[i].extension_pref); in PrefMapping()
Dextension_proxy_api.h30 virtual Value* ExtensionToBrowserPref(const Value* extension_pref,
Dextension_preference_api.h53 virtual Value* ExtensionToBrowserPref(const Value* extension_pref,
/external/chromium_org/chrome/browser/extensions/api/proxy/
Dproxy_api.cc91 Value* ProxyPrefTransformer::ExtensionToBrowserPref(const Value* extension_pref, in ExtensionToBrowserPref() argument
97 CHECK(extension_pref->IsType(Value::TYPE_DICTIONARY)); in ExtensionToBrowserPref()
99 static_cast<const base::DictionaryValue*>(extension_pref); in ExtensionToBrowserPref()
147 scoped_ptr<base::DictionaryValue> extension_pref(new base::DictionaryValue); in BrowserToExtensionPref() local
149 extension_pref->SetString(keys::kProxyConfigMode, in BrowserToExtensionPref()
165 extension_pref->Set(keys::kProxyConfigPacScript, pac_dict); in BrowserToExtensionPref()
174 extension_pref->Set(keys::kProxyConfigRules, proxy_rules_dict); in BrowserToExtensionPref()
180 return extension_pref.release(); in BrowserToExtensionPref()
Dproxy_api_helpers_unittest.cc344 scoped_ptr<base::DictionaryValue> extension_pref( in TEST() local
346 ASSERT_TRUE(extension_pref.get()); in TEST()
361 EXPECT_TRUE(Value::Equals(expected.get(), extension_pref.get())); in TEST()
372 scoped_ptr<base::DictionaryValue> extension_pref( in TEST() local
374 ASSERT_TRUE(extension_pref.get()); in TEST()
389 EXPECT_TRUE(Value::Equals(expected.get(), extension_pref.get())); in TEST()
397 scoped_ptr<base::DictionaryValue> extension_pref(CreatePacScriptDict(config)); in TEST() local
398 ASSERT_TRUE(extension_pref.get()); in TEST()
404 EXPECT_TRUE(Value::Equals(expected.get(), extension_pref.get())); in TEST()
412 scoped_ptr<base::DictionaryValue> extension_pref(CreatePacScriptDict(config)); in TEST() local
[all …]
Dproxy_api.h34 virtual base::Value* ExtensionToBrowserPref(const base::Value* extension_pref,
/external/chromium_org/chrome/browser/extensions/api/preference/
Dpreference_api.cc44 const char* extension_pref; member
113 virtual Value* ExtensionToBrowserPref(const Value* extension_pref, in ExtensionToBrowserPref() argument
116 return extension_pref->DeepCopy(); in ExtensionToBrowserPref()
126 virtual Value* ExtensionToBrowserPref(const Value* extension_pref, in ExtensionToBrowserPref() argument
129 return InvertBooleanValue(extension_pref); in ExtensionToBrowserPref()
151 bool FindBrowserPrefForExtensionPref(const std::string& extension_pref, in FindBrowserPrefForExtensionPref() argument
154 PrefMap::iterator it = mapping_.find(extension_pref); in FindBrowserPrefForExtensionPref()
191 mapping_[kPrefMapping[i].extension_pref] = in PrefMapping()
196 kPrefMapping[i].extension_pref); in PrefMapping()
Dpreference_api.h164 const base::Value* extension_pref,
/external/chromium/chrome/browser/prefs/
Dpref_value_store_unittest.cc59 namespace extension_pref { namespace
159 extension_pref::kManagedPlatformValue); in CreateExtensionPrefs()
162 extension_pref::kManagedCloudValue); in CreateExtensionPrefs()
165 extension_pref::kExtensionValue); in CreateExtensionPrefs()
318 EXPECT_EQ(extension_pref::kExtensionValue, actual_str_value); in TEST_F()
/external/chromium_org/base/prefs/
Dpref_value_store_unittest.cc59 namespace extension_pref { namespace
149 extension_pref::kManagedValue); in CreateExtensionPrefs()
152 extension_pref::kSupervisedUserValue); in CreateExtensionPrefs()
155 extension_pref::kExtensionValue); in CreateExtensionPrefs()
290 EXPECT_EQ(extension_pref::kExtensionValue, actual_str_value); in TEST_F()