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

Unified Diff: chrome/browser/chromeos/login/user_image_manager_browsertest.cc

Issue 11369258: Revert 167808 - Get rid of use of CreateStringValue in chromeos/ directory. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 1 month 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/chromeos/login/user_image_manager_browsertest.cc
===================================================================
--- chrome/browser/chromeos/login/user_image_manager_browsertest.cc (revision 167824)
+++ chrome/browser/chromeos/login/user_image_manager_browsertest.cc (working copy)
@@ -72,7 +72,7 @@
// Adds given user to Local State, if not there.
void AddUser(const std::string& username) {
ListPrefUpdate users_pref(local_state_, "LoggedInUsers");
- users_pref->AppendIfNotPresent(new base::StringValue(username));
+ users_pref->AppendIfNotPresent(base::Value::CreateStringValue(username));
}
// Logs in |username|.
@@ -96,7 +96,7 @@
image_properties->Set(
"index", base::Value::CreateIntegerValue(image_index));
image_properties->Set(
- "path" , new base::StringValue(image_path.value()));
+ "path" , base::Value::CreateStringValue(image_path.value()));
images_pref->SetWithoutPathExpansion(username, image_properties);
}
« no previous file with comments | « chrome/browser/chromeos/extensions/info_private_api.cc ('k') | chrome/browser/chromeos/login/user_manager_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698