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

Unified Diff: chrome/browser/chromeos/policy/auto_enrollment_client.cc

Issue 2664753002: Remove base::StringValue (Closed)
Patch Set: Rebase Created 3 years, 9 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/policy/auto_enrollment_client.cc
diff --git a/chrome/browser/chromeos/policy/auto_enrollment_client.cc b/chrome/browser/chromeos/policy/auto_enrollment_client.cc
index 974922ae6d27554cf9caba61f87862c4d5289cf8..2a54a10fce20e4f6e6762d0b1fde5a047ef12e27 100644
--- a/chrome/browser/chromeos/policy/auto_enrollment_client.cc
+++ b/chrome/browser/chromeos/policy/auto_enrollment_client.cc
@@ -376,23 +376,18 @@ bool AutoEnrollmentClient::OnDeviceStateRequestCompletion(
response.device_state_retrieval_response();
{
DictionaryPrefUpdate dict(local_state_, prefs::kServerBackedDeviceState);
- UpdateDict(dict.Get(),
- kDeviceStateManagementDomain,
+ UpdateDict(dict.Get(), kDeviceStateManagementDomain,
state_response.has_management_domain(),
- new base::StringValue(state_response.management_domain()));
+ new base::Value(state_response.management_domain()));
std::string restore_mode =
ConvertRestoreMode(state_response.restore_mode());
- UpdateDict(dict.Get(),
- kDeviceStateRestoreMode,
- !restore_mode.empty(),
- new base::StringValue(restore_mode));
+ UpdateDict(dict.Get(), kDeviceStateRestoreMode, !restore_mode.empty(),
+ new base::Value(restore_mode));
- UpdateDict(dict.Get(),
- kDeviceStateDisabledMessage,
+ UpdateDict(dict.Get(), kDeviceStateDisabledMessage,
state_response.has_disabled_state(),
- new base::StringValue(
- state_response.disabled_state().message()));
+ new base::Value(state_response.disabled_state().message()));
// Logging as "WARNING" to make sure it's preserved in the logs.
LOG(WARNING) << "Restore mode: " << restore_mode;

Powered by Google App Engine
This is Rietveld 408576698