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

Unified Diff: chrome/browser/ui/webui/options/create_profile_handler.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/ui/webui/options/create_profile_handler.cc
diff --git a/chrome/browser/ui/webui/options/create_profile_handler.cc b/chrome/browser/ui/webui/options/create_profile_handler.cc
index 800471ae94613a2034cbbd8182d9087f08c8249a..f820a9943e0fc8be588df1ba9bc03e7cbeaf856d 100644
--- a/chrome/browser/ui/webui/options/create_profile_handler.cc
+++ b/chrome/browser/ui/webui/options/create_profile_handler.cc
@@ -230,8 +230,7 @@ void CreateProfileHandler::ShowProfileCreationError(
profile_creation_type_ = NO_CREATION_IN_PROGRESS;
profile_path_being_created_.clear();
web_ui()->CallJavascriptFunctionUnsafe(
- GetJavascriptMethodName(PROFILE_CREATION_ERROR),
- base::StringValue(error));
+ GetJavascriptMethodName(PROFILE_CREATION_ERROR), base::Value(error));
// The ProfileManager calls us back with a NULL profile in some cases.
if (profile) {
webui::DeleteProfileAtPath(profile->GetPath(),
@@ -434,7 +433,7 @@ void CreateProfileHandler::ShowProfileCreationWarning(
const base::string16& warning) {
DCHECK_EQ(SUPERVISED_PROFILE_CREATION, profile_creation_type_);
web_ui()->CallJavascriptFunctionUnsafe(
- "BrowserOptions.showCreateProfileWarning", base::StringValue(warning));
+ "BrowserOptions.showCreateProfileWarning", base::Value(warning));
}
void CreateProfileHandler::RecordSupervisedProfileCreationMetrics(
« no previous file with comments | « chrome/browser/ui/webui/options/core_options_handler.cc ('k') | chrome/browser/ui/webui/options/easy_unlock_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698