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

Unified Diff: ash/first_run/first_run_helper_impl.cc

Issue 460933002: Split Shell::ToggleAppList() into ShowAppList and DismissAppList. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 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: ash/first_run/first_run_helper_impl.cc
diff --git a/ash/first_run/first_run_helper_impl.cc b/ash/first_run/first_run_helper_impl.cc
index 919cca91a14105d83f6e243c5cfede002ae31f88..8a7980cb64bbb66d743589674fa775b07f428b74 100644
--- a/ash/first_run/first_run_helper_impl.cc
+++ b/ash/first_run/first_run_helper_impl.cc
@@ -51,15 +51,11 @@ views::Widget* FirstRunHelperImpl::GetOverlayWidget() {
}
void FirstRunHelperImpl::OpenAppList() {
- if (Shell::GetInstance()->GetAppListTargetVisibility())
- return;
- Shell::GetInstance()->ToggleAppList(NULL);
+ Shell::GetInstance()->ShowAppList(NULL);
}
void FirstRunHelperImpl::CloseAppList() {
- if (!Shell::GetInstance()->GetAppListTargetVisibility())
- return;
- Shell::GetInstance()->ToggleAppList(NULL);
+ Shell::GetInstance()->DismissAppList();
}
gfx::Rect FirstRunHelperImpl::GetLauncherBounds() {

Powered by Google App Engine
This is Rietveld 408576698