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

Unified Diff: chrome/browser/extensions/api/system_private/system_private_api.cc

Issue 2664753002: Remove base::StringValue (Closed)
Patch Set: Rebase Created 3 years, 9 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/system_private/system_private_api.cc
diff --git a/chrome/browser/extensions/api/system_private/system_private_api.cc b/chrome/browser/extensions/api/system_private/system_private_api.cc
index d128aa247344e237e0fc6e013a779190220993f7..997e83eee9f54dff5962acd7561755901923fa59 100644
--- a/chrome/browser/extensions/api/system_private/system_private_api.cc
+++ b/chrome/browser/extensions/api/system_private/system_private_api.cc
@@ -79,8 +79,8 @@ SystemPrivateGetIncognitoModeAvailabilityFunction::Run() {
EXTENSION_FUNCTION_VALIDATE(
value >= 0 &&
value < static_cast<int>(arraysize(kIncognitoModeAvailabilityStrings)));
- return RespondNow(OneArgument(base::MakeUnique<base::StringValue>(
- kIncognitoModeAvailabilityStrings[value])));
+ return RespondNow(OneArgument(
+ base::MakeUnique<base::Value>(kIncognitoModeAvailabilityStrings[value])));
}
ExtensionFunction::ResponseAction SystemPrivateGetUpdateStatusFunction::Run() {
@@ -145,8 +145,8 @@ ExtensionFunction::ResponseAction SystemPrivateGetUpdateStatusFunction::Run() {
}
ExtensionFunction::ResponseAction SystemPrivateGetApiKeyFunction::Run() {
- return RespondNow(OneArgument(
- base::MakeUnique<base::StringValue>(google_apis::GetAPIKey())));
+ return RespondNow(
+ OneArgument(base::MakeUnique<base::Value>(google_apis::GetAPIKey())));
}
void DispatchVolumeChangedEvent(double volume, bool is_volume_muted) {
« no previous file with comments | « chrome/browser/extensions/api/sync_file_system/sync_file_system_api.cc ('k') | chrome/browser/extensions/api/tabs/tabs_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698