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

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

Issue 345533005: Parse extra parameters on x-chrome-manage-accounts header (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: cleanup Created 6 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « chrome/browser/signin/signin_header_helper.cc ('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.h" 8 #include "base/metrics/histogram.h"
9 #include "base/prefs/pref_service.h" 9 #include "base/prefs/pref_service.h"
10 #include "base/strings/utf_string_conversions.h" 10 #include "base/strings/utf_string_conversions.h"
(...skipping 1029 matching lines...) Expand 10 before | Expand all | Expand 10 after
1040 } 1040 }
1041 1041
1042 void ShowAppMenu(Browser* browser) { 1042 void ShowAppMenu(Browser* browser) {
1043 // We record the user metric for this event in WrenchMenu::RunMenu. 1043 // We record the user metric for this event in WrenchMenu::RunMenu.
1044 browser->window()->ShowAppMenu(); 1044 browser->window()->ShowAppMenu();
1045 } 1045 }
1046 1046
1047 void ShowAvatarMenu(Browser* browser) { 1047 void ShowAvatarMenu(Browser* browser) {
1048 browser->window()->ShowAvatarBubbleFromAvatarButton( 1048 browser->window()->ShowAvatarBubbleFromAvatarButton(
1049 BrowserWindow::AVATAR_BUBBLE_MODE_DEFAULT, 1049 BrowserWindow::AVATAR_BUBBLE_MODE_DEFAULT,
1050 signin::GAIA_SERVICE_TYPE_NONE); 1050 signin::ManageAccountsParams());
1051 } 1051 }
1052 1052
1053 void OpenUpdateChromeDialog(Browser* browser) { 1053 void OpenUpdateChromeDialog(Browser* browser) {
1054 if (UpgradeDetector::GetInstance()->is_outdated_install()) { 1054 if (UpgradeDetector::GetInstance()->is_outdated_install()) {
1055 content::NotificationService::current()->Notify( 1055 content::NotificationService::current()->Notify(
1056 chrome::NOTIFICATION_OUTDATED_INSTALL, 1056 chrome::NOTIFICATION_OUTDATED_INSTALL,
1057 content::NotificationService::AllSources(), 1057 content::NotificationService::AllSources(),
1058 content::NotificationService::NoDetails()); 1058 content::NotificationService::NoDetails());
1059 } else if (UpgradeDetector::GetInstance()->is_outdated_install_no_au()) { 1059 } else if (UpgradeDetector::GetInstance()->is_outdated_install_no_au()) {
1060 content::NotificationService::current()->Notify( 1060 content::NotificationService::current()->Notify(
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after
1264 browser->profile(), 1264 browser->profile(),
1265 browser->host_desktop_type())); 1265 browser->host_desktop_type()));
1266 app_browser->tab_strip_model()->AppendWebContents(contents, true); 1266 app_browser->tab_strip_model()->AppendWebContents(contents, true);
1267 1267
1268 contents->GetMutableRendererPrefs()->can_accept_load_drops = false; 1268 contents->GetMutableRendererPrefs()->can_accept_load_drops = false;
1269 contents->GetRenderViewHost()->SyncRendererPrefs(); 1269 contents->GetRenderViewHost()->SyncRendererPrefs();
1270 app_browser->window()->Show(); 1270 app_browser->window()->Show();
1271 } 1271 }
1272 1272
1273 } // namespace chrome 1273 } // namespace chrome
OLDNEW
« no previous file with comments | « chrome/browser/signin/signin_header_helper.cc ('k') | chrome/browser/ui/browser_window.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698