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

Unified Diff: chrome/browser/profiles/incognito_mode_policy_handler_unittest.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_unittest.cc
diff --git a/chrome/browser/profiles/incognito_mode_policy_handler_unittest.cc b/chrome/browser/profiles/incognito_mode_policy_handler_unittest.cc
index f0861c6b31f7e85dd43020678c7c7b39d05611c2..407eb18780e6330db1944784ea1ce877b2f86a96 100644
--- a/chrome/browser/profiles/incognito_mode_policy_handler_unittest.cc
+++ b/chrome/browser/profiles/incognito_mode_policy_handler_unittest.cc
@@ -41,9 +41,10 @@ class IncognitoModePolicyHandlerTest
NULL);
}
if (availability >= 0) {
- policy.Set(key::kIncognitoModeAvailability, POLICY_LEVEL_MANDATORY,
+ policy.Set(key::kIncognitoModeAvailability,
+ POLICY_LEVEL_MANDATORY,
POLICY_SCOPE_USER,
- base::Value::CreateIntegerValue(availability),
+ new base::FundamentalValue(availability),
NULL);
}
UpdateProviderPolicy(policy);

Powered by Google App Engine
This is Rietveld 408576698