| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |