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

Unified Diff: chrome/browser/app_controller_mac.mm

Issue 2814683005: [Mac] Support for Touch Bar Customization (Closed)
Patch Set: Fix for rsesek Created 3 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | chrome/browser/ui/cocoa/browser_window_touch_bar.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/app_controller_mac.mm
diff --git a/chrome/browser/app_controller_mac.mm b/chrome/browser/app_controller_mac.mm
index 78d27e24bfe65d7ece00191b85791a9638cee468..6c7ddec3824c2056fd7f4cbe0186da44ba312842 100644
--- a/chrome/browser/app_controller_mac.mm
+++ b/chrome/browser/app_controller_mac.mm
@@ -741,6 +741,12 @@ class AppControllerProfileObserver : public ProfileAttributesStorage::Observer {
handoff_active_url_observer_bridge_.reset(
new HandoffActiveURLObserverBridge(self));
+
+ NSApplication* application = [NSApplication sharedApplication];
+ if ([application respondsToSelector:@selector
+ (setAutomaticCustomizeTouchBarMenuItemEnabled:)]) {
Robert Sesek 2017/04/14 16:56:20 Did clang-format do this? It should *really* be br
spqchan 2017/04/14 18:02:19 Yes it did, is there a way for us to fix clang-for
Robert Sesek 2017/04/14 18:22:17 See the "Reporting problems" link here: https://ch
spqchan 2017/04/14 22:46:57 thanks!
+ [application setAutomaticCustomizeTouchBarMenuItemEnabled:YES];
+ }
}
// Helper function for populating and displaying the in progress downloads at
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | chrome/browser/ui/cocoa/browser_window_touch_bar.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698