OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/android/infobars/auto_login_prompter.h" | 5 #include "chrome/browser/ui/android/infobars/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" | |
12 #include "chrome/browser/profiles/profile.h" | 11 #include "chrome/browser/profiles/profile.h" |
13 #include "chrome/browser/signin/profile_oauth2_token_service_factory.h" | 12 #include "chrome/browser/signin/profile_oauth2_token_service_factory.h" |
14 #include "chrome/browser/signin/signin_manager_factory.h" | 13 #include "chrome/browser/signin/signin_manager_factory.h" |
15 #include "chrome/browser/tab_contents/tab_util.h" | 14 #include "chrome/browser/tab_contents/tab_util.h" |
16 #include "chrome/common/chrome_switches.h" | 15 #include "chrome/common/chrome_switches.h" |
17 #include "chrome/common/pref_names.h" | 16 #include "chrome/common/pref_names.h" |
18 #include "components/auto_login_parser/auto_login_parser.h" | 17 #include "components/auto_login_parser/auto_login_parser.h" |
| 18 #include "components/google/core/browser/google_url_tracker.h" |
19 #include "components/signin/core/browser/profile_oauth2_token_service.h" | 19 #include "components/signin/core/browser/profile_oauth2_token_service.h" |
20 #include "components/signin/core/browser/signin_manager.h" | 20 #include "components/signin/core/browser/signin_manager.h" |
21 #include "content/public/browser/browser_thread.h" | 21 #include "content/public/browser/browser_thread.h" |
22 #include "content/public/browser/web_contents.h" | 22 #include "content/public/browser/web_contents.h" |
23 #include "net/url_request/url_request.h" | 23 #include "net/url_request/url_request.h" |
24 #include "url/gurl.h" | 24 #include "url/gurl.h" |
25 | 25 |
26 using content::BrowserThread; | 26 using content::BrowserThread; |
27 using content::BrowserContext; | 27 using content::BrowserContext; |
28 using content::WebContents; | 28 using content::WebContents; |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 | 102 |
103 void AutoLoginPrompter::WebContentsDestroyed() { | 103 void AutoLoginPrompter::WebContentsDestroyed() { |
104 // The WebContents was destroyed before the navigation completed. | 104 // The WebContents was destroyed before the navigation completed. |
105 delete this; | 105 delete this; |
106 } | 106 } |
107 | 107 |
108 void AutoLoginPrompter::AddInfoBarToWebContents() { | 108 void AutoLoginPrompter::AddInfoBarToWebContents() { |
109 if (!infobar_shown_) | 109 if (!infobar_shown_) |
110 infobar_shown_ = AutoLoginInfoBarDelegate::Create(web_contents(), params_); | 110 infobar_shown_ = AutoLoginInfoBarDelegate::Create(web_contents(), params_); |
111 } | 111 } |
OLD | NEW |