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

Unified Diff: chrome/browser/chromeos/arc/arc_support_host.cc

Issue 2108643007: Revert of arc: Implement silent OptIn mode for managed Arc. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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/arc/arc_support_host.cc
diff --git a/chrome/browser/chromeos/arc/arc_support_host.cc b/chrome/browser/chromeos/arc/arc_support_host.cc
index 25b0e0ba29ae48835e3c7be85152319e39956074..3713eb058dab9ea26329320fbb9e032a40d6dcb9 100644
--- a/chrome/browser/chromeos/arc/arc_support_host.cc
+++ b/chrome/browser/chromeos/arc/arc_support_host.cc
@@ -28,14 +28,12 @@
namespace {
const char kAction[] = "action";
+const char kCode[] = "code";
const char kCanEnable[] = "canEnable";
-const char kCode[] = "code";
-const char kCountryCode[] = "countryCode";
+const char kStatus[] = "status";
const char kData[] = "data";
const char kDeviceId[] = "deviceId";
const char kOn[] = "on";
-const char kSilentMode[] = "silentMode";
-const char kStatus[] = "status";
const char kPage[] = "page";
const char kText[] = "text";
const char kActionInitialize[] = "initialize";
@@ -138,7 +136,7 @@
const std::string& app_locale = g_browser_process->GetApplicationLocale();
const std::string& country_code = base::CountryCodeForCurrentTimezone();
- localized_strings->SetString(kCountryCode, country_code);
+ localized_strings->SetString("countryCode", country_code);
webui::SetLoadTimeDataDefaults(app_locale, localized_strings.get());
@@ -153,8 +151,6 @@
request.SetString(kAction, kActionInitialize);
request.Set(kData, std::move(localized_strings));
request.SetString(kDeviceId, device_id);
- request.SetBoolean(kSilentMode, arc_auth_service->IsArcManaged());
-
base::JSONWriter::Write(request, &request_string);
client_->PostMessageFromNativeHost(request_string);
}
« no previous file with comments | « chrome/browser/chromeos/arc/arc_auth_service.cc ('k') | chrome/browser/resources/chromeos/arc_support/background.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698