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

Unified Diff: chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc

Issue 16172005: Clean up async app launcher enabled checks. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix test Created 7 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc
diff --git a/chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc b/chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc
index 38e8f424d171f7961cdcf73ddb15ab4cb644eff5..4998e089c3da322515cbee0c424176399a0ec781 100644
--- a/chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc
+++ b/chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc
@@ -1298,11 +1298,6 @@ void BookmarkBarView::Init() {
// else case: we'll receive notification back from the BookmarkModel when
// done loading, then we'll populate the bar.
}
-
- // The first check for the app launcher is asynchronous, run it now.
- apps::GetIsAppLauncherEnabled(
- base::Bind(&BookmarkBarView::OnAppLauncherEnabledCompleted,
- base::Unretained(this)));
}
int BookmarkBarView::GetBookmarkButtonCount() {
@@ -1874,8 +1869,3 @@ void BookmarkBarView::OnAppsPageShortcutVisibilityPrefChanged() {
UpdateBookmarksSeparatorVisibility();
Layout();
}
-
-void BookmarkBarView::OnAppLauncherEnabledCompleted(bool app_launcher_enabled) {
- // Disregard |app_launcher_enabled|, use apps::WasAppLauncherEnable instead.
- OnAppsPageShortcutVisibilityPrefChanged();
-}
« no previous file with comments | « chrome/browser/ui/views/bookmarks/bookmark_bar_view.h ('k') | chrome/browser/ui/views/bookmarks/bookmark_bar_view_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698