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

Side by Side Diff: chrome/browser/app_controller_mac.h

Issue 1301583004: Revert of Delete dead signin code (SigninGlobalError) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 4 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/BUILD.gn ('k') | chrome/browser/app_controller_mac.mm » ('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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 #ifndef CHROME_BROWSER_APP_CONTROLLER_MAC_H_ 5 #ifndef CHROME_BROWSER_APP_CONTROLLER_MAC_H_
6 #define CHROME_BROWSER_APP_CONTROLLER_MAC_H_ 6 #define CHROME_BROWSER_APP_CONTROLLER_MAC_H_
7 7
8 #if defined(__OBJC__) 8 #if defined(__OBJC__)
9 9
10 #import <Cocoa/Cocoa.h> 10 #import <Cocoa/Cocoa.h>
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 scoped_ptr<HandoffActiveURLObserverBridge> 105 scoped_ptr<HandoffActiveURLObserverBridge>
106 handoff_active_url_observer_bridge_; 106 handoff_active_url_observer_bridge_;
107 107
108 // This will be true after receiving a NSWorkspaceWillPowerOffNotification. 108 // This will be true after receiving a NSWorkspaceWillPowerOffNotification.
109 BOOL isPoweringOff_; 109 BOOL isPoweringOff_;
110 } 110 }
111 111
112 @property(readonly, nonatomic) BOOL startupComplete; 112 @property(readonly, nonatomic) BOOL startupComplete;
113 @property(readonly, nonatomic) Profile* lastProfile; 113 @property(readonly, nonatomic) Profile* lastProfile;
114 114
115 // Helper method used to update the "Signin" menu item in the main menu and the
116 // wrench menu to reflect the current signed in state.
117 + (void)updateSigninItem:(id)signinItem
118 shouldShow:(BOOL)showSigninMenuItem
119 currentProfile:(Profile*)profile;
120
115 - (void)didEndMainMessageLoop; 121 - (void)didEndMainMessageLoop;
116 122
117 // Try to close all browser windows, and if that succeeds then quit. 123 // Try to close all browser windows, and if that succeeds then quit.
118 - (BOOL)tryToTerminateApplication:(NSApplication*)app; 124 - (BOOL)tryToTerminateApplication:(NSApplication*)app;
119 125
120 // Stop trying to terminate the application. That is, prevent the final browser 126 // Stop trying to terminate the application. That is, prevent the final browser
121 // window closure from causing the application to quit. 127 // window closure from causing the application to quit.
122 - (void)stopTryingToTerminateApplication:(NSApplication*)app; 128 - (void)stopTryingToTerminateApplication:(NSApplication*)app;
123 129
124 // Indicate that the system is powering off or logging out. 130 // Indicate that the system is powering off or logging out.
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
176 namespace app_controller_mac { 182 namespace app_controller_mac {
177 183
178 // True if we are currently handling an IDC_NEW_{TAB,WINDOW} command. Used in 184 // True if we are currently handling an IDC_NEW_{TAB,WINDOW} command. Used in
179 // SessionService::Observe() to get around windows/linux and mac having 185 // SessionService::Observe() to get around windows/linux and mac having
180 // different models of application lifetime. 186 // different models of application lifetime.
181 bool IsOpeningNewWindow(); 187 bool IsOpeningNewWindow();
182 188
183 } // namespace app_controller_mac 189 } // namespace app_controller_mac
184 190
185 #endif 191 #endif
OLDNEW
« no previous file with comments | « chrome/browser/BUILD.gn ('k') | chrome/browser/app_controller_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698