Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2397)

Unified Diff: chrome/browser/extensions/api/preference/preference_helpers.cc

Issue 16915006: Convert most of extensions and some other random stuff to using the base namespace for Values. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/extensions/api/preference/preference_helpers.cc
diff --git a/chrome/browser/extensions/api/preference/preference_helpers.cc b/chrome/browser/extensions/api/preference/preference_helpers.cc
index c8f1f6b8c22d209795621bda25956eb04dd6e949..e4192dd1d4f945b39c55c86f5f3694b3d79482fc 100644
--- a/chrome/browser/extensions/api/preference/preference_helpers.cc
+++ b/chrome/browser/extensions/api/preference/preference_helpers.cc
@@ -88,7 +88,7 @@ const char* GetLevelOfControl(
void DispatchEventToExtensions(
Profile* profile,
const std::string& event_name,
- ListValue* args,
+ base::ListValue* args,
APIPermission::ID permission,
bool incognito,
const std::string& browser_pref) {
@@ -108,7 +108,7 @@ void DispatchEventToExtensions(
(!incognito || IncognitoInfo::IsSplitMode(it->get()) ||
extension_service->CanCrossIncognito(it->get()))) {
// Inject level of control key-value.
- DictionaryValue* dict;
+ base::DictionaryValue* dict;
bool rv = args->GetDictionary(0, &dict);
DCHECK(rv);
std::string level_of_control =
@@ -134,7 +134,7 @@ void DispatchEventToExtensions(
}
}
- scoped_ptr<ListValue> args_copy(args->DeepCopy());
+ scoped_ptr<base::ListValue> args_copy(args->DeepCopy());
scoped_ptr<Event> event(new Event(event_name, args_copy.Pass()));
event->restrict_to_profile = restrict_to_profile;
router->DispatchEventToExtension(extension_id, event.Pass());

Powered by Google App Engine
This is Rietveld 408576698