| 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/chrome_signin_helper.h" | 5 #include "chrome/browser/signin/chrome_signin_helper.h" |
| 6 | 6 |
| 7 #include "base/strings/string_util.h" | 7 #include "base/strings/string_util.h" |
| 8 #include "build/build_config.h" | 8 #include "build/build_config.h" |
| 9 #include "chrome/browser/prefs/incognito_mode_prefs.h" | 9 #include "chrome/browser/prefs/incognito_mode_prefs.h" |
| 10 #include "chrome/browser/profiles/profile_io_data.h" | 10 #include "chrome/browser/profiles/profile_io_data.h" |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 case GAIA_SERVICE_TYPE_REAUTH: | 69 case GAIA_SERVICE_TYPE_REAUTH: |
| 70 bubble_mode = BrowserWindow::AVATAR_BUBBLE_MODE_REAUTH; | 70 bubble_mode = BrowserWindow::AVATAR_BUBBLE_MODE_REAUTH; |
| 71 break; | 71 break; |
| 72 default: | 72 default: |
| 73 bubble_mode = BrowserWindow::AVATAR_BUBBLE_MODE_ACCOUNT_MANAGEMENT; | 73 bubble_mode = BrowserWindow::AVATAR_BUBBLE_MODE_ACCOUNT_MANAGEMENT; |
| 74 } | 74 } |
| 75 signin_metrics::LogAccountReconcilorStateOnGaiaResponse( | 75 signin_metrics::LogAccountReconcilorStateOnGaiaResponse( |
| 76 account_reconcilor->GetState()); | 76 account_reconcilor->GetState()); |
| 77 browser->window()->ShowAvatarBubbleFromAvatarButton( | 77 browser->window()->ShowAvatarBubbleFromAvatarButton( |
| 78 bubble_mode, manage_accounts_params, | 78 bubble_mode, manage_accounts_params, |
| 79 signin_metrics::AccessPoint::ACCESS_POINT_CONTENT_AREA); | 79 signin_metrics::AccessPoint::ACCESS_POINT_CONTENT_AREA, false); |
| 80 } | 80 } |
| 81 #else // defined(OS_ANDROID) | 81 #else // defined(OS_ANDROID) |
| 82 if (service_type == signin::GAIA_SERVICE_TYPE_INCOGNITO) { | 82 if (service_type == signin::GAIA_SERVICE_TYPE_INCOGNITO) { |
| 83 GURL url(manage_accounts_params.continue_url.empty() | 83 GURL url(manage_accounts_params.continue_url.empty() |
| 84 ? chrome::kChromeUINativeNewTabURL | 84 ? chrome::kChromeUINativeNewTabURL |
| 85 : manage_accounts_params.continue_url); | 85 : manage_accounts_params.continue_url); |
| 86 web_contents->OpenURL(content::OpenURLParams( | 86 web_contents->OpenURL(content::OpenURLParams( |
| 87 url, content::Referrer(), WindowOpenDisposition::OFF_THE_RECORD, | 87 url, content::Referrer(), WindowOpenDisposition::OFF_THE_RECORD, |
| 88 ui::PAGE_TRANSITION_AUTO_TOPLEVEL, false)); | 88 ui::PAGE_TRANSITION_AUTO_TOPLEVEL, false)); |
| 89 } else { | 89 } else { |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 163 return; | 163 return; |
| 164 | 164 |
| 165 params.child_id = child_id; | 165 params.child_id = child_id; |
| 166 params.route_id = route_id; | 166 params.route_id = route_id; |
| 167 content::BrowserThread::PostTask( | 167 content::BrowserThread::PostTask( |
| 168 content::BrowserThread::UI, FROM_HERE, | 168 content::BrowserThread::UI, FROM_HERE, |
| 169 base::Bind(ProcessMirrorHeaderUIThread, child_id, route_id, params)); | 169 base::Bind(ProcessMirrorHeaderUIThread, child_id, route_id, params)); |
| 170 } | 170 } |
| 171 | 171 |
| 172 } // namespace signin | 172 } // namespace signin |
| OLD | NEW |