OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/signin/signin_header_helper.h" | 5 #include "chrome/browser/signin/signin_header_helper.h" |
6 | 6 |
7 #include "chrome/browser/google/google_util.h" | 7 #include "chrome/browser/google/google_util.h" |
8 #include "chrome/browser/profiles/profile_io_data.h" | 8 #include "chrome/browser/profiles/profile_io_data.h" |
9 #include "chrome/browser/tab_contents/tab_util.h" | 9 #include "chrome/browser/tab_contents/tab_util.h" |
10 #include "chrome/browser/ui/browser_finder.h" | 10 #include "chrome/browser/ui/browser_finder.h" |
11 #include "chrome/browser/ui/browser_window.h" | 11 #include "chrome/browser/ui/browser_window.h" |
12 #include "chrome/common/profile_management_switches.h" | 12 #include "components/signin/core/common/profile_management_switches.h" |
13 #include "content/public/browser/browser_thread.h" | 13 #include "content/public/browser/browser_thread.h" |
14 #include "content/public/browser/web_contents.h" | 14 #include "content/public/browser/web_contents.h" |
15 #include "google_apis/gaia/gaia_auth_util.h" | 15 #include "google_apis/gaia/gaia_auth_util.h" |
16 #include "net/http/http_response_headers.h" | 16 #include "net/http/http_response_headers.h" |
17 #include "net/url_request/url_request.h" | 17 #include "net/url_request/url_request.h" |
18 | 18 |
19 #if defined(OS_ANDROID) | 19 #if defined(OS_ANDROID) |
20 #include "chrome/browser/android/signin/account_management_screen_helper.h" | 20 #include "chrome/browser/android/signin/account_management_screen_helper.h" |
21 #endif // defined(OS_ANDROID) | 21 #endif // defined(OS_ANDROID) |
22 | 22 |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
110 request->response_headers()->HasHeader(kChromeManageAccountsHeader)) { | 110 request->response_headers()->HasHeader(kChromeManageAccountsHeader)) { |
111 DCHECK(switches::IsNewProfileManagement() && | 111 DCHECK(switches::IsNewProfileManagement() && |
112 !io_data->IsOffTheRecord()); | 112 !io_data->IsOffTheRecord()); |
113 content::BrowserThread::PostTask( | 113 content::BrowserThread::PostTask( |
114 content::BrowserThread::UI, FROM_HERE, | 114 content::BrowserThread::UI, FROM_HERE, |
115 base::Bind(ShowAvatarBubbleUIThread, child_id, route_id)); | 115 base::Bind(ShowAvatarBubbleUIThread, child_id, route_id)); |
116 } | 116 } |
117 } | 117 } |
118 | 118 |
119 } // namespace signin | 119 } // namespace signin |
OLD | NEW |