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

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

Issue 228393004: Create bookmarks component with names of bookmark preferences (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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
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 #include "chrome/browser/ui/cocoa/bookmarks/bookmark_bar_bridge.h" 5 #include "chrome/browser/ui/cocoa/bookmarks/bookmark_bar_bridge.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/prefs/pref_service.h" 8 #include "base/prefs/pref_service.h"
9 #include "chrome/browser/bookmarks/bookmark_model.h" 9 #include "chrome/browser/bookmarks/bookmark_model.h"
10 #include "chrome/browser/profiles/profile.h" 10 #include "chrome/browser/profiles/profile.h"
11 #include "chrome/browser/ui/cocoa/bookmarks/bookmark_bar_controller.h" 11 #include "chrome/browser/ui/cocoa/bookmarks/bookmark_bar_controller.h"
12 #include "chrome/common/pref_names.h" 12 #include "chrome/common/pref_names.h"
13 #include "components/bookmarks/bookmark_pref_names.h"
13 14
14 15
15 BookmarkBarBridge::BookmarkBarBridge(Profile* profile, 16 BookmarkBarBridge::BookmarkBarBridge(Profile* profile,
16 BookmarkBarController* controller, 17 BookmarkBarController* controller,
17 BookmarkModel* model) 18 BookmarkModel* model)
18 : controller_(controller), 19 : controller_(controller),
19 model_(model), 20 model_(model),
20 batch_mode_(false) { 21 batch_mode_(false) {
21 model_->AddObserver(this); 22 model_->AddObserver(this);
22 23
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 } 103 }
103 104
104 void BookmarkBarBridge::ExtensiveBookmarkChangesEnded(BookmarkModel* model) { 105 void BookmarkBarBridge::ExtensiveBookmarkChangesEnded(BookmarkModel* model) {
105 batch_mode_ = false; 106 batch_mode_ = false;
106 [controller_ loaded:model]; 107 [controller_ loaded:model];
107 } 108 }
108 109
109 void BookmarkBarBridge::OnAppsPageShortcutVisibilityPrefChanged() { 110 void BookmarkBarBridge::OnAppsPageShortcutVisibilityPrefChanged() {
110 [controller_ updateAppsPageShortcutButtonVisibility]; 111 [controller_ updateAppsPageShortcutButtonVisibility];
111 } 112 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698