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

Unified Diff: chrome/browser/extensions/api/instance_id/instance_id_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/instance_id/instance_id_api.cc
diff --git a/chrome/browser/extensions/api/instance_id/instance_id_api.cc b/chrome/browser/extensions/api/instance_id/instance_id_api.cc
index afa6dafb41a271e559eb992255486c6d86cbddf1..0a897d47a7a7acf69445da555abae69d04e00d47 100644
--- a/chrome/browser/extensions/api/instance_id/instance_id_api.cc
+++ b/chrome/browser/extensions/api/instance_id/instance_id_api.cc
@@ -95,7 +95,7 @@ ExtensionFunction::ResponseAction InstanceIDGetIDFunction::DoWork() {
}
void InstanceIDGetIDFunction::GetIDCompleted(const std::string& id) {
- Respond(OneArgument(base::MakeUnique<base::StringValue>(id)));
+ Respond(OneArgument(base::MakeUnique<base::Value>(id)));
}
InstanceIDGetCreationTimeFunction::InstanceIDGetCreationTimeFunction() {}
@@ -141,7 +141,7 @@ void InstanceIDGetTokenFunction::GetTokenCompleted(
const std::string& token,
instance_id::InstanceID::Result result) {
if (result == instance_id::InstanceID::SUCCESS)
- Respond(OneArgument(base::MakeUnique<base::StringValue>(token)));
+ Respond(OneArgument(base::MakeUnique<base::Value>(token)));
else
Respond(Error(InstanceIDResultToError(result)));
}

Powered by Google App Engine
This is Rietveld 408576698