OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chrome/browser/ui/auto_login_prompter.h" | 5 #include "chrome/browser/ui/auto_login_prompter.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "base/prefs/pref_service.h" | 10 #include "base/prefs/pref_service.h" |
11 #include "chrome/browser/google/google_url_tracker.h" | 11 #include "chrome/browser/google/google_url_tracker.h" |
12 #include "chrome/browser/infobars/infobar_service.h" | 12 #include "chrome/browser/infobars/infobar_service.h" |
13 #include "chrome/browser/profiles/profile.h" | 13 #include "chrome/browser/profiles/profile.h" |
14 #include "chrome/browser/signin/signin_manager.h" | 14 #include "chrome/browser/signin/signin_manager.h" |
15 #include "chrome/browser/signin/signin_manager_factory.h" | 15 #include "chrome/browser/signin/signin_manager_factory.h" |
16 #include "chrome/browser/signin/token_service.h" | 16 #include "chrome/browser/signin/token_service.h" |
17 #include "chrome/browser/signin/token_service_factory.h" | 17 #include "chrome/browser/signin/token_service_factory.h" |
18 #include "chrome/browser/sync/profile_sync_service.h" | 18 #include "chrome/browser/sync/profile_sync_service.h" |
19 #include "chrome/browser/sync/profile_sync_service_factory.h" | 19 #include "chrome/browser/sync/profile_sync_service_factory.h" |
20 #include "chrome/browser/tab_contents/tab_util.h" | 20 #include "chrome/browser/tab_contents/tab_util.h" |
21 #include "chrome/browser/ui/auto_login_info_bar_delegate.h" | |
22 #include "chrome/common/chrome_switches.h" | 21 #include "chrome/common/chrome_switches.h" |
23 #include "chrome/common/pref_names.h" | 22 #include "chrome/common/pref_names.h" |
24 #include "components/auto_login_parser/auto_login_parser.h" | 23 #include "components/auto_login_parser/auto_login_parser.h" |
25 #include "content/public/browser/browser_thread.h" | 24 #include "content/public/browser/browser_thread.h" |
26 #include "content/public/browser/web_contents.h" | 25 #include "content/public/browser/web_contents.h" |
27 #include "googleurl/src/gurl.h" | 26 #include "googleurl/src/gurl.h" |
28 #include "net/url_request/url_request.h" | 27 #include "net/url_request/url_request.h" |
29 | 28 |
30 using content::BrowserThread; | 29 using content::BrowserThread; |
31 using content::WebContents; | 30 using content::WebContents; |
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
148 return; | 147 return; |
149 | 148 |
150 InfoBarService* infobar_service = | 149 InfoBarService* infobar_service = |
151 InfoBarService::FromWebContents(web_contents()); | 150 InfoBarService::FromWebContents(web_contents()); |
152 // |infobar_service| is NULL for WebContents hosted in WebDialog. | 151 // |infobar_service| is NULL for WebContents hosted in WebDialog. |
153 if (infobar_service) { | 152 if (infobar_service) { |
154 AutoLoginInfoBarDelegate::Create(infobar_service, params_); | 153 AutoLoginInfoBarDelegate::Create(infobar_service, params_); |
155 infobar_shown_ = true; | 154 infobar_shown_ = true; |
156 } | 155 } |
157 } | 156 } |
OLD | NEW |