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

Unified Diff: chrome/browser/chromeos/login/webui_login_view.cc

Issue 259663006: Fix captive portal window on sign-in screen (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 8 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/login/webui_login_view.cc
diff --git a/chrome/browser/chromeos/login/webui_login_view.cc b/chrome/browser/chromeos/login/webui_login_view.cc
index f48a3a7966dbf01a32f4359fcb624059b63fa6ac..79d62f2e9dba232918ca4e53b0649f52a93d3d8a 100644
--- a/chrome/browser/chromeos/login/webui_login_view.cc
+++ b/chrome/browser/chromeos/login/webui_login_view.cc
@@ -22,6 +22,7 @@
#include "chrome/browser/media/media_stream_infobar_delegate.h"
#include "chrome/browser/password_manager/chrome_password_manager_client.h"
#include "chrome/browser/renderer_preferences_util.h"
+#include "chrome/browser/sessions/session_tab_helper.h"
#include "chrome/browser/ui/autofill/tab_autofill_manager_delegate.h"
#include "chrome/browser/ui/webui/chromeos/login/oobe_ui.h"
#include "chrome/common/render_messages.h"
@@ -172,6 +173,11 @@ void WebUILoginView::Init() {
WebContents* web_contents = webui_login_->GetWebContents();
+ // Ensure that the login UI has a tab ID, which will allow the GAIA auth
+ // extension's background script to tell it apart from a captive portal window
+ // that may be opened on top of this UI.
+ SessionTabHelper::CreateForWebContents(web_contents);
guohui 2014/04/28 16:29:24 could you please move this to inline_login_ui.cc s
xiyuan 2014/04/28 16:30:22 Cros login screen does not use InlinLoginUI. This
guohui 2014/04/28 16:40:24 as discussed with xiyuan over chat, i ll handle th
+
// Create the password manager that is needed for the proxy.
ChromePasswordManagerClient::CreateForWebContentsWithAutofillManagerDelegate(
web_contents,
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698