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

Unified Diff: chrome/browser/profiles/incognito_mode_policy_handler.cc

Issue 385263004: Get rid of some uses of CreateIntegerValue (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 5 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/profiles/incognito_mode_policy_handler.cc
diff --git a/chrome/browser/profiles/incognito_mode_policy_handler.cc b/chrome/browser/profiles/incognito_mode_policy_handler.cc
index 0696dcd15b1200f025c93114b29e4f68e278c74c..df387fe0720b7d9294d79a9140d02330f985aaa0 100644
--- a/chrome/browser/profiles/incognito_mode_policy_handler.cc
+++ b/chrome/browser/profiles/incognito_mode_policy_handler.cc
@@ -69,8 +69,8 @@ void IncognitoModePolicyHandler::ApplyPolicySettings(const PolicyMap& policies,
if (availability->GetAsInteger(&int_value) &&
IncognitoModePrefs::IntToAvailability(int_value,
&availability_enum_value)) {
- prefs->SetValue(prefs::kIncognitoModeAvailability,
- base::Value::CreateIntegerValue(availability_enum_value));
+ prefs->SetInteger(prefs::kIncognitoModeAvailability,
+ availability_enum_value);
} else {
NOTREACHED();
}

Powered by Google App Engine
This is Rietveld 408576698