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

Side by Side Diff: chrome/browser/ui/bookmarks/bookmark_utils.cc

Issue 161293002: mac: Allows extensions to hide the bookmark page menu item. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 6 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/bookmarks/bookmark_utils.h" 5 #include "chrome/browser/ui/bookmarks/bookmark_utils.h"
6 6
7 #include "base/basictypes.h" 7 #include "base/basictypes.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/prefs/pref_service.h" 9 #include "base/prefs/pref_service.h"
10 #include "base/strings/string_number_conversions.h" 10 #include "base/strings/string_number_conversions.h"
(...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after
287 return chrome::IsInstantExtendedAPIEnabled() && !profile->IsOffTheRecord(); 287 return chrome::IsInstantExtendedAPIEnabled() && !profile->IsOffTheRecord();
288 } 288 }
289 289
290 bool ShouldShowAppsShortcutInBookmarkBar( 290 bool ShouldShowAppsShortcutInBookmarkBar(
291 Profile* profile, 291 Profile* profile,
292 chrome::HostDesktopType host_desktop_type) { 292 chrome::HostDesktopType host_desktop_type) {
293 return IsAppsShortcutEnabled(profile, host_desktop_type) && 293 return IsAppsShortcutEnabled(profile, host_desktop_type) &&
294 profile->GetPrefs()->GetBoolean(prefs::kShowAppsShortcutInBookmarkBar); 294 profile->GetPrefs()->GetBoolean(prefs::kShowAppsShortcutInBookmarkBar);
295 } 295 }
296 296
297 bool ShouldShowBookmarkPageMenuItem(Profile* profile) {
298 // TODO(wittman): implement me!
299 // See crrev.com/148203014 for a working implementation.
300 // The previous CL requires crrev.com/143493005 to land first.
301 return true;
302 }
303
297 } // namespace chrome 304 } // namespace chrome
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698