OLD | NEW |
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 Loading... |
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 |
OLD | NEW |