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

Unified Diff: components/user_manager/user_manager_base.cc

Issue 2666093002: Remove base::FundamentalValue (Closed)
Patch Set: Rebase Created 3 years, 10 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: components/user_manager/user_manager_base.cc
diff --git a/components/user_manager/user_manager_base.cc b/components/user_manager/user_manager_base.cc
index 047e5d7e1fb72fdc1ad1dfdfd52782af8b209ea7..054949fff927c1e80d7ccd714883c56c1a785c83 100644
--- a/components/user_manager/user_manager_base.cc
+++ b/components/user_manager/user_manager_base.cc
@@ -365,7 +365,7 @@ void UserManagerBase::SaveUserOAuthStatus(
kUserOAuthTokenStatus);
oauth_status_update->SetWithoutPathExpansion(
account_id.GetUserEmail(),
- new base::FundamentalValue(static_cast<int>(oauth_token_status)));
+ new base::Value(static_cast<int>(oauth_token_status)));
}
GetLocalState()->CommitPendingWrite();
}
@@ -457,8 +457,7 @@ void UserManagerBase::SaveUserType(const AccountId& account_id,
DictionaryPrefUpdate user_type_update(GetLocalState(), kUserType);
user_type_update->SetWithoutPathExpansion(
- account_id.GetUserEmail(),
- new base::FundamentalValue(static_cast<int>(user_type)));
+ account_id.GetUserEmail(), new base::Value(static_cast<int>(user_type)));
GetLocalState()->CommitPendingWrite();
}

Powered by Google App Engine
This is Rietveld 408576698