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

Unified Diff: chrome/browser/ui/ash/launcher/browser_shortcut_launcher_item_controller.cc

Issue 2622423002: Remove unused LauncherItemController::IsVisible() (Closed)
Patch Set: Created 3 years, 11 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/ash/launcher/browser_shortcut_launcher_item_controller.cc
diff --git a/chrome/browser/ui/ash/launcher/browser_shortcut_launcher_item_controller.cc b/chrome/browser/ui/ash/launcher/browser_shortcut_launcher_item_controller.cc
index 8f541ef31d8902b1b0abb42c4b7a126de6b5ee5d..65753fec484dff4c4c4702477c4b7f3850b9cbb3 100644
--- a/chrome/browser/ui/ash/launcher/browser_shortcut_launcher_item_controller.cc
+++ b/chrome/browser/ui/ash/launcher/browser_shortcut_launcher_item_controller.cc
@@ -130,18 +130,6 @@ void BrowserShortcutLauncherItemController::SetShelfIDForBrowserWindowContents(
launcher_controller()->GetShelfIDForWebContents(web_contents));
}
-bool BrowserShortcutLauncherItemController::IsVisible() const {
- Browser* last_browser =
- chrome::FindTabbedBrowser(launcher_controller()->profile(), true);
-
- if (!last_browser) {
- return false;
- }
-
- aura::Window* window = last_browser->window()->GetNativeWindow();
- return ash::wm::IsActiveWindow(window);
-}
-
void BrowserShortcutLauncherItemController::Launch(ash::LaunchSource source,
int event_flags) {
}

Powered by Google App Engine
This is Rietveld 408576698