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

Side by Side Diff: chrome/browser/ui/cocoa/bookmarks/bookmark_bar_controller.mm

Issue 6766004: Create a ProfileDependencyManager to order ProfileKeyedService destruction. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix improper usage of static_cast<> in existing mac code. Created 9 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_bar_controller.h" 5 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_bar_controller.h"
6 6
7 #include "base/mac/mac_util.h" 7 #include "base/mac/mac_util.h"
8 #include "base/metrics/histogram.h" 8 #include "base/metrics/histogram.h"
9 #include "base/sys_string_conversions.h" 9 #include "base/sys_string_conversions.h"
10 #include "chrome/browser/bookmarks/bookmark_editor.h" 10 #include "chrome/browser/bookmarks/bookmark_editor.h"
(...skipping 722 matching lines...) Expand 10 before | Expand all | Expand 10 after
733 733
734 - (IBAction)importBookmarks:(id)sender { 734 - (IBAction)importBookmarks:(id)sender {
735 browser_->OpenImportSettingsDialog(); 735 browser_->OpenImportSettingsDialog();
736 } 736 }
737 737
738 #pragma mark Private Methods 738 #pragma mark Private Methods
739 739
740 // Called after the current theme has changed. 740 // Called after the current theme has changed.
741 - (void)themeDidChangeNotification:(NSNotification*)aNotification { 741 - (void)themeDidChangeNotification:(NSNotification*)aNotification {
742 ui::ThemeProvider* themeProvider = 742 ui::ThemeProvider* themeProvider =
743 static_cast<ui::ThemeProvider*>([[aNotification object] pointerValue]); 743 static_cast<ThemeService*>([[aNotification object] pointerValue]);
744 [self updateTheme:themeProvider]; 744 [self updateTheme:themeProvider];
745 } 745 }
746 746
747 // (Private) Method is the same as [self view], but is provided to be explicit. 747 // (Private) Method is the same as [self view], but is provided to be explicit.
748 - (BackgroundGradientView*)backgroundGradientView { 748 - (BackgroundGradientView*)backgroundGradientView {
749 DCHECK([[self view] isKindOfClass:[BackgroundGradientView class]]); 749 DCHECK([[self view] isKindOfClass:[BackgroundGradientView class]]);
750 return (BackgroundGradientView*)[self view]; 750 return (BackgroundGradientView*)[self view];
751 } 751 }
752 752
753 // (Private) Method is the same as [self view], but is provided to be explicit. 753 // (Private) Method is the same as [self view], but is provided to be explicit.
(...skipping 1791 matching lines...) Expand 10 before | Expand all | Expand 10 after
2545 // to minimize touching the object passed in (likely a mock). 2545 // to minimize touching the object passed in (likely a mock).
2546 - (void)setButtonContextMenu:(id)menu { 2546 - (void)setButtonContextMenu:(id)menu {
2547 buttonContextMenu_ = menu; 2547 buttonContextMenu_ = menu;
2548 } 2548 }
2549 2549
2550 - (void)setIgnoreAnimations:(BOOL)ignore { 2550 - (void)setIgnoreAnimations:(BOOL)ignore {
2551 ignoreAnimations_ = ignore; 2551 ignoreAnimations_ = ignore;
2552 } 2552 }
2553 2553
2554 @end 2554 @end
OLDNEW
« no previous file with comments | « chrome/browser/themes/theme_service_factory.cc ('k') | chrome/browser/ui/cocoa/bookmarks/bookmark_bar_view.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698