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

Side by Side Diff: chrome/browser/ui/cocoa/apps/quit_with_apps_controller_mac.cc

Issue 266133002: Remove a few unused typedefs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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/themes/browser_theme_pack.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/cocoa/apps/quit_with_apps_controller_mac.h" 5 #include "chrome/browser/ui/cocoa/apps/quit_with_apps_controller_mac.h"
6 6
7 #include "apps/app_window.h" 7 #include "apps/app_window.h"
8 #include "apps/app_window_registry.h" 8 #include "apps/app_window_registry.h"
9 #include "apps/ui/native_app_window.h" 9 #include "apps/ui/native_app_window.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 void QuitWithAppsController::Close(bool by_user) { 77 void QuitWithAppsController::Close(bool by_user) {
78 if (by_user) 78 if (by_user)
79 suppress_for_session_ = true; 79 suppress_for_session_ = true;
80 } 80 }
81 81
82 void QuitWithAppsController::Click() { 82 void QuitWithAppsController::Click() {
83 g_browser_process->notification_ui_manager()->CancelById(id()); 83 g_browser_process->notification_ui_manager()->CancelById(id());
84 } 84 }
85 85
86 void QuitWithAppsController::ButtonClick(int button_index) { 86 void QuitWithAppsController::ButtonClick(int button_index) {
87 typedef apps::AppWindowRegistry::AppWindowList AppWindowList;
88
89 g_browser_process->notification_ui_manager()->CancelById(id()); 87 g_browser_process->notification_ui_manager()->CancelById(id());
90 if (button_index == kQuitAllAppsButtonIndex) { 88 if (button_index == kQuitAllAppsButtonIndex) {
91 apps::AppWindowRegistry::CloseAllAppWindows(); 89 apps::AppWindowRegistry::CloseAllAppWindows();
92 } else if (button_index == kDontShowAgainButtonIndex) { 90 } else if (button_index == kDontShowAgainButtonIndex) {
93 g_browser_process->local_state()->SetBoolean( 91 g_browser_process->local_state()->SetBoolean(
94 prefs::kNotifyWhenAppsKeepChromeAlive, false); 92 prefs::kNotifyWhenAppsKeepChromeAlive, false);
95 } 93 }
96 } 94 }
97 95
98 content::WebContents* QuitWithAppsController::GetWebContents() const { 96 content::WebContents* QuitWithAppsController::GetWebContents() const {
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 139
142 // Always return false, the notification UI can be used to quit all apps which 140 // Always return false, the notification UI can be used to quit all apps which
143 // will cause Chrome to quit. 141 // will cause Chrome to quit.
144 return false; 142 return false;
145 } 143 }
146 144
147 // static 145 // static
148 void QuitWithAppsController::RegisterPrefs(PrefRegistrySimple* registry) { 146 void QuitWithAppsController::RegisterPrefs(PrefRegistrySimple* registry) {
149 registry->RegisterBooleanPref(prefs::kNotifyWhenAppsKeepChromeAlive, true); 147 registry->RegisterBooleanPref(prefs::kNotifyWhenAppsKeepChromeAlive, true);
150 } 148 }
OLDNEW
« no previous file with comments | « chrome/browser/themes/browser_theme_pack.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698