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

Unified Diff: chrome/browser/ui/webui/chromeos/login/gaia_screen_handler.cc

Issue 957673003: Chrome OS Gaia: Set param 'chrometype' for MinuteMaid (chromebox, chromebase or chromebook) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update after review Created 5 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
« no previous file with comments | « chrome/browser/resources/gaia_auth_host/authenticator.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/chromeos/login/gaia_screen_handler.cc
diff --git a/chrome/browser/ui/webui/chromeos/login/gaia_screen_handler.cc b/chrome/browser/ui/webui/chromeos/login/gaia_screen_handler.cc
index c0dfa04b06eb1fb2e088422673ac36408bf7b240..5a5b4beb44fcf81c37b60163c8c5928d53fe6f0d 100644
--- a/chrome/browser/ui/webui/chromeos/login/gaia_screen_handler.cc
+++ b/chrome/browser/ui/webui/chromeos/login/gaia_screen_handler.cc
@@ -12,6 +12,7 @@
#include "base/values.h"
#include "chrome/browser/browser_process.h"
#include "chrome/browser/browser_shutdown.h"
+#include "chrome/browser/chromeos/chromeos_utils.h"
#include "chrome/browser/chromeos/input_method/input_method_util.h"
#include "chrome/browser/chromeos/language_preferences.h"
#include "chrome/browser/chromeos/login/screens/network_error.h"
@@ -226,11 +227,14 @@ void GaiaScreenHandler::LoadGaia(const GaiaContext& context) {
if (StartupUtils::IsWebviewSigninEnabled()) {
params.SetBoolean("useMinuteMaid", true);
+
policy::BrowserPolicyConnectorChromeOS* connector =
g_browser_process->platform_part()->browser_policy_connector_chromeos();
std::string enterprise_domain(connector->GetEnterpriseDomain());
if (!enterprise_domain.empty())
params.SetString("enterpriseDomain", enterprise_domain);
+
+ params.SetString("chromeType", GetChromeDeviceTypeString());
params.SetString("clientId",
GaiaUrls::GetInstance()->oauth2_chrome_client_id());
if (!command_line->HasSwitch(switches::kGaiaEndpointChromeOS)) {
« no previous file with comments | « chrome/browser/resources/gaia_auth_host/authenticator.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698