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

Side by Side Diff: chrome/browser/ui/browser_commands.cc

Issue 2709763002: Removing Fast User Switcher feature. (Closed)
Patch Set: Removing PopulateCompleteProfileChooserView and PopulateMinimalProfileChooserView Created 3 years, 9 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 unified diff | Download patch
« no previous file with comments | « chrome/browser/ui/browser_commands.h ('k') | chrome/browser/ui/browser_window.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 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/browser_commands.h" 5 #include "chrome/browser/ui/browser_commands.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/metrics/histogram_macros.h" 8 #include "base/metrics/histogram_macros.h"
9 #include "base/strings/utf_string_conversions.h" 9 #include "base/strings/utf_string_conversions.h"
10 #include "build/build_config.h" 10 #include "build/build_config.h"
(...skipping 1111 matching lines...) Expand 10 before | Expand all | Expand 10 after
1122 // We record the user metric for this event in AppMenu::RunMenu. 1122 // We record the user metric for this event in AppMenu::RunMenu.
1123 browser->window()->ShowAppMenu(); 1123 browser->window()->ShowAppMenu();
1124 } 1124 }
1125 1125
1126 void ShowAvatarMenu(Browser* browser) { 1126 void ShowAvatarMenu(Browser* browser) {
1127 browser->window()->ShowAvatarBubbleFromAvatarButton( 1127 browser->window()->ShowAvatarBubbleFromAvatarButton(
1128 BrowserWindow::AVATAR_BUBBLE_MODE_DEFAULT, signin::ManageAccountsParams(), 1128 BrowserWindow::AVATAR_BUBBLE_MODE_DEFAULT, signin::ManageAccountsParams(),
1129 signin_metrics::AccessPoint::ACCESS_POINT_AVATAR_BUBBLE_SIGN_IN, true); 1129 signin_metrics::AccessPoint::ACCESS_POINT_AVATAR_BUBBLE_SIGN_IN, true);
1130 } 1130 }
1131 1131
1132 void ShowFastUserSwitcher(Browser* browser) {
1133 browser->window()->ShowAvatarBubbleFromAvatarButton(
1134 BrowserWindow::AVATAR_BUBBLE_MODE_FAST_USER_SWITCH,
1135 signin::ManageAccountsParams(),
1136 signin_metrics::AccessPoint::ACCESS_POINT_AVATAR_BUBBLE_SIGN_IN, false);
1137 }
1138
1139 void OpenUpdateChromeDialog(Browser* browser) { 1132 void OpenUpdateChromeDialog(Browser* browser) {
1140 if (UpgradeDetector::GetInstance()->is_outdated_install()) { 1133 if (UpgradeDetector::GetInstance()->is_outdated_install()) {
1141 content::NotificationService::current()->Notify( 1134 content::NotificationService::current()->Notify(
1142 chrome::NOTIFICATION_OUTDATED_INSTALL, 1135 chrome::NOTIFICATION_OUTDATED_INSTALL,
1143 content::NotificationService::AllSources(), 1136 content::NotificationService::AllSources(),
1144 content::NotificationService::NoDetails()); 1137 content::NotificationService::NoDetails());
1145 } else if (UpgradeDetector::GetInstance()->is_outdated_install_no_au()) { 1138 } else if (UpgradeDetector::GetInstance()->is_outdated_install_no_au()) {
1146 content::NotificationService::current()->Notify( 1139 content::NotificationService::current()->Notify(
1147 chrome::NOTIFICATION_OUTDATED_INSTALL_NO_AU, 1140 chrome::NOTIFICATION_OUTDATED_INSTALL_NO_AU,
1148 content::NotificationService::AllSources(), 1141 content::NotificationService::AllSources(),
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after
1341 true)); 1334 true));
1342 app_browser->tab_strip_model()->AppendWebContents(contents, true); 1335 app_browser->tab_strip_model()->AppendWebContents(contents, true);
1343 1336
1344 contents->GetMutableRendererPrefs()->can_accept_load_drops = false; 1337 contents->GetMutableRendererPrefs()->can_accept_load_drops = false;
1345 contents->GetRenderViewHost()->SyncRendererPrefs(); 1338 contents->GetRenderViewHost()->SyncRendererPrefs();
1346 app_browser->window()->Show(); 1339 app_browser->window()->Show();
1347 } 1340 }
1348 #endif // BUILDFLAG(ENABLE_EXTENSIONS) 1341 #endif // BUILDFLAG(ENABLE_EXTENSIONS)
1349 1342
1350 } // namespace chrome 1343 } // namespace chrome
OLDNEW
« no previous file with comments | « chrome/browser/ui/browser_commands.h ('k') | chrome/browser/ui/browser_window.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698