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

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

Issue 585653002: After locking a profile and showing the User Manager, make Guest the active profile (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: don't do anything if you're already a guest profile Created 6 years, 2 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 | « no previous file | 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 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 - (BookmarkMenuBridge*)bookmarkMenuBridge; 135 - (BookmarkMenuBridge*)bookmarkMenuBridge;
136 136
137 // Subscribes/unsubscribes from the work area change notification. 137 // Subscribes/unsubscribes from the work area change notification.
138 - (void)addObserverForWorkAreaChange:(ui::WorkAreaWatcherObserver*)observer; 138 - (void)addObserverForWorkAreaChange:(ui::WorkAreaWatcherObserver*)observer;
139 - (void)removeObserverForWorkAreaChange:(ui::WorkAreaWatcherObserver*)observer; 139 - (void)removeObserverForWorkAreaChange:(ui::WorkAreaWatcherObserver*)observer;
140 140
141 // Initializes the AppShimMenuController. This enables changing the menu bar for 141 // Initializes the AppShimMenuController. This enables changing the menu bar for
142 // apps. 142 // apps.
143 - (void)initAppShimMenuController; 143 - (void)initAppShimMenuController;
144 144
145 // Called when the user has changed browser windows, meaning the backing profile
146 // may have changed. This can cause a rebuild of the user-data menus. This is a
147 // no-op if the new profile is the same as the current one. This will always be
148 // the original profile and never incognito.
149 - (void)windowChangedToProfile:(Profile*)profile;
150
145 @end 151 @end
146 152
147 #endif // __OBJC__ 153 #endif // __OBJC__
148 154
149 // Functions that may be accessed from non-Objective-C C/C++ code. 155 // Functions that may be accessed from non-Objective-C C/C++ code.
150 156
151 namespace app_controller_mac { 157 namespace app_controller_mac {
152 158
153 // True if we are currently handling an IDC_NEW_{TAB,WINDOW} command. Used in 159 // True if we are currently handling an IDC_NEW_{TAB,WINDOW} command. Used in
154 // SessionService::Observe() to get around windows/linux and mac having 160 // SessionService::Observe() to get around windows/linux and mac having
155 // different models of application lifetime. 161 // different models of application lifetime.
156 bool IsOpeningNewWindow(); 162 bool IsOpeningNewWindow();
157 163
158 } // namespace app_controller_mac 164 } // namespace app_controller_mac
159 165
160 #endif 166 #endif
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/app_controller_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698