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

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

Issue 1658793002: Update chrome for new prefs location. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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"
9 #include "chrome/browser/profiles/profile.h" 8 #include "chrome/browser/profiles/profile.h"
10 #include "chrome/browser/ui/cocoa/bookmarks/bookmark_bar_controller.h" 9 #include "chrome/browser/ui/cocoa/bookmarks/bookmark_bar_controller.h"
11 #include "components/bookmarks/browser/bookmark_model.h" 10 #include "components/bookmarks/browser/bookmark_model.h"
12 #include "components/bookmarks/common/bookmark_pref_names.h" 11 #include "components/bookmarks/common/bookmark_pref_names.h"
12 #include "components/prefs/pref_service.h"
13 13
14 using bookmarks::BookmarkModel; 14 using bookmarks::BookmarkModel;
15 using bookmarks::BookmarkNode; 15 using bookmarks::BookmarkNode;
16 16
17 BookmarkBarBridge::BookmarkBarBridge(Profile* profile, 17 BookmarkBarBridge::BookmarkBarBridge(Profile* profile,
18 BookmarkBarController* controller, 18 BookmarkBarController* controller,
19 BookmarkModel* model) 19 BookmarkModel* model)
20 : controller_(controller), 20 : controller_(controller),
21 model_(model), 21 model_(model),
22 batch_mode_(false) { 22 batch_mode_(false) {
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 } 115 }
116 116
117 void BookmarkBarBridge::ExtensiveBookmarkChangesEnded(BookmarkModel* model) { 117 void BookmarkBarBridge::ExtensiveBookmarkChangesEnded(BookmarkModel* model) {
118 batch_mode_ = false; 118 batch_mode_ = false;
119 [controller_ loaded:model]; 119 [controller_ loaded:model];
120 } 120 }
121 121
122 void BookmarkBarBridge::OnExtraButtonsVisibilityChanged() { 122 void BookmarkBarBridge::OnExtraButtonsVisibilityChanged() {
123 [controller_ updateExtraButtonsVisibility]; 123 [controller_ updateExtraButtonsVisibility];
124 } 124 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/bookmarks/bookmark_bar_bridge.h ('k') | chrome/browser/ui/cocoa/bookmarks/bookmark_bar_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698