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

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

Issue 8341105: [cros] Use ScheduleSavePersistentPrefs instead of SavePersistentPrefs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove change from OOBE boot. Created 9 years, 2 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/chromeos/login/user_manager.cc
diff --git a/chrome/browser/chromeos/login/user_manager.cc b/chrome/browser/chromeos/login/user_manager.cc
index 9fcc17ebe80772983714e65fb7700f85dafd8470..e72c502c52f25d18f6e4ae209e3001130d1a1c65 100644
--- a/chrome/browser/chromeos/login/user_manager.cc
+++ b/chrome/browser/chromeos/login/user_manager.cc
@@ -227,7 +227,7 @@ void UserManager::SaveImageToLocalState(const std::string& username,
new base::FundamentalValue(image_index));
images_update->SetWithoutPathExpansion(username, image_properties);
DVLOG(1) << "Saving path to user image in Local State.";
- local_state->SavePersistentPrefs();
+ local_state->ScheduleSavePersistentPrefs();
NotifyLocalStateChanged();
content::NotificationService::current()->Notify(
@@ -434,7 +434,7 @@ void UserManager::UserLoggedIn(const std::string& email) {
logged_in_user_ = *it;
}
}
- prefs->SavePersistentPrefs();
+ prefs->ScheduleSavePersistentPrefs();
NotifyOnLogin();
if (current_user_is_new_) {
SetDefaultUserImage(email);
@@ -518,7 +518,7 @@ void UserManager::RemoveUserFromList(const std::string& email) {
prefs_oauth_update->GetIntegerWithoutPathExpansion(email, &oauth_status);
prefs_oauth_update->RemoveWithoutPathExpansion(email, NULL);
- prefs->SavePersistentPrefs();
+ prefs->ScheduleSavePersistentPrefs();
int default_image_id = kDefaultImagesCount;
if (!IsDefaultImagePath(image_path_string, &default_image_id)) {
@@ -600,7 +600,7 @@ void UserManager::SaveUserOAuthStatus(const std::string& username,
oauth_status_update->SetWithoutPathExpansion(username,
new base::FundamentalValue(static_cast<int>(oauth_token_status)));
DVLOG(1) << "Saving user OAuth token status in Local State.";
- local_state->SavePersistentPrefs();
+ local_state->ScheduleSavePersistentPrefs();
}
UserManager::OAuthTokenStatus UserManager::GetUserOAuthStatus(
« no previous file with comments | « chrome/browser/chromeos/login/language_switch_menu.cc ('k') | chrome/browser/chromeos/status/input_method_menu.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698