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

Unified Diff: chrome/browser/ui/cocoa/bookmarks/bookmark_bar_bridge.mm

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/cocoa/bookmarks/bookmark_bar_bridge.mm
diff --git a/chrome/browser/ui/cocoa/bookmarks/bookmark_bar_bridge.mm b/chrome/browser/ui/cocoa/bookmarks/bookmark_bar_bridge.mm
index dd3dec4894c9e523d2ea67bc338972634edb1216..2faedd1c8bb6d2b60c5c6730c3b65d4f1f91ab3f 100644
--- a/chrome/browser/ui/cocoa/bookmarks/bookmark_bar_bridge.mm
+++ b/chrome/browser/ui/cocoa/bookmarks/bookmark_bar_bridge.mm
@@ -32,10 +32,7 @@ BookmarkBarBridge::BookmarkBarBridge(Profile* profile,
base::Bind(&BookmarkBarBridge::OnAppsPageShortcutVisibilityPrefChanged,
base::Unretained(this)));
- // The first check for the app launcher is asynchronous, run it now.
- apps::GetIsAppLauncherEnabled(
- base::Bind(&BookmarkBarBridge::OnAppLauncherEnabledCompleted,
- base::Unretained(this)));
+ [controller_ updateAppsPageShortcutButtonVisibility];
}
BookmarkBarBridge::~BookmarkBarBridge() {
@@ -107,8 +104,3 @@ void BookmarkBarBridge::ExtensiveBookmarkChangesEnded(BookmarkModel* model) {
void BookmarkBarBridge::OnAppsPageShortcutVisibilityPrefChanged() {
[controller_ updateAppsPageShortcutButtonVisibility];
}
-
-void BookmarkBarBridge::OnAppLauncherEnabledCompleted(
- bool app_launcher_enabled) {
- [controller_ updateAppsPageShortcutButtonVisibility];
-}
« no previous file with comments | « chrome/browser/ui/cocoa/bookmarks/bookmark_bar_bridge.h ('k') | chrome/browser/ui/extensions/extension_install_ui_default.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698