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

Unified Diff: chrome/browser/profiles/incognito_mode_policy_handler_unittest.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: 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 34b5f81b422536bda8cdf252354d8798401aa91e..8d5851303c4288dd8ed26cc1ea81ec460d5c6e06 100644
--- a/chrome/browser/profiles/incognito_mode_policy_handler_unittest.cc
+++ b/chrome/browser/profiles/incognito_mode_policy_handler_unittest.cc
@@ -37,15 +37,14 @@ class IncognitoModePolicyHandlerTest
if (incognito_enabled != INCOGNITO_ENABLED_UNKNOWN) {
policy.Set(key::kIncognitoEnabled, POLICY_LEVEL_MANDATORY,
POLICY_SCOPE_USER, POLICY_SOURCE_CLOUD,
- base::MakeUnique<base::FundamentalValue>(
- incognito_enabled == INCOGNITO_ENABLED_TRUE),
+ base::MakeUnique<base::Value>(incognito_enabled ==
+ INCOGNITO_ENABLED_TRUE),
nullptr);
}
if (availability >= 0) {
policy.Set(key::kIncognitoModeAvailability, POLICY_LEVEL_MANDATORY,
POLICY_SCOPE_USER, POLICY_SOURCE_CLOUD,
- base::MakeUnique<base::FundamentalValue>(availability),
- nullptr);
+ base::MakeUnique<base::Value>(availability), nullptr);
}
UpdateProviderPolicy(policy);
}
@@ -53,7 +52,7 @@ class IncognitoModePolicyHandlerTest
void VerifyValues(IncognitoModePrefs::Availability availability) {
const base::Value* value = NULL;
EXPECT_TRUE(store_->GetValue(prefs::kIncognitoModeAvailability, &value));
- EXPECT_TRUE(base::FundamentalValue(availability).Equals(value));
+ EXPECT_TRUE(base::Value(availability).Equals(value));
}
};
« no previous file with comments | « chrome/browser/profiles/guest_mode_policy_handler_unittest.cc ('k') | chrome/browser/profiles/profile_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698