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

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

Issue 152223002: Renames LauncherID, LauncherItem and LauncherItems... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: OWNERS Created 6 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_status_monitor.cc
diff --git a/chrome/browser/ui/ash/launcher/browser_status_monitor.cc b/chrome/browser/ui/ash/launcher/browser_status_monitor.cc
index 0b1c506fb0082df81c356817c18cb9a9f415c043..030c286f6b08d4e427b66d7e1a1c359275995548 100644
--- a/chrome/browser/ui/ash/launcher/browser_status_monitor.cc
+++ b/chrome/browser/ui/ash/launcher/browser_status_monitor.cc
@@ -47,10 +47,10 @@ void BrowserStatusMonitor::LocalWebContentsObserver::DidNavigateMainFrame(
monitor_->UpdateAppItemState(web_contents(), state);
monitor_->UpdateBrowserItemState();
- // Navigating may change the LauncherID associated with the WebContents.
+ // Navigating may change the ShelfID associated with the WebContents.
if (browser->tab_strip_model()->GetActiveWebContents() == web_contents()) {
- ash::SetLauncherIDForWindow(
- monitor_->GetLauncherIDForWebContents(web_contents()),
+ ash::SetShelfIDForWindow(
+ monitor_->GetShelfIDForWebContents(web_contents()),
browser->window()->GetNativeWindow());
}
}
@@ -235,9 +235,8 @@ void BrowserStatusMonitor::ActiveTabChanged(content::WebContents* old_contents,
ChromeLauncherController::APP_STATE_ACTIVE;
UpdateAppItemState(new_contents, state);
UpdateBrowserItemState();
- ash::SetLauncherIDForWindow(
- GetLauncherIDForWebContents(new_contents),
- browser->window()->GetNativeWindow());
+ ash::SetShelfIDForWindow(GetShelfIDForWebContents(new_contents),
+ browser->window()->GetNativeWindow());
}
}
@@ -264,9 +263,8 @@ void BrowserStatusMonitor::TabReplacedAt(TabStripModel* tab_strip_model,
UpdateBrowserItemState();
if (tab_strip_model->GetActiveWebContents() == new_contents) {
- ash::SetLauncherIDForWindow(
- GetLauncherIDForWebContents(new_contents),
- browser->window()->GetNativeWindow());
+ ash::SetShelfIDForWindow(GetShelfIDForWebContents(new_contents),
+ browser->window()->GetNativeWindow());
}
AddWebContentsObserver(new_contents);
@@ -335,7 +333,7 @@ void BrowserStatusMonitor::RemoveWebContentsObserver(
webcontents_to_observer_map_.erase(contents);
}
-ash::LauncherID BrowserStatusMonitor::GetLauncherIDForWebContents(
+ash::ShelfID BrowserStatusMonitor::GetShelfIDForWebContents(
content::WebContents* contents) {
- return launcher_controller_->GetLauncherIDForWebContents(contents);
+ return launcher_controller_->GetShelfIDForWebContents(contents);
}
« no previous file with comments | « chrome/browser/ui/ash/launcher/browser_status_monitor.h ('k') | chrome/browser/ui/ash/launcher/chrome_launcher_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698