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

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: address comments 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
« no previous file with comments | « no previous file | ash/shelf/shelf_layout_manager_unittest.cc » ('j') | ash/shell.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 e5e335db84f4ff98413ec393e70275d0a0b3ebe7..62692a5b009fc958617982d4e28ff46f5df59ea4 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() {
« no previous file with comments | « no previous file | ash/shelf/shelf_layout_manager_unittest.cc » ('j') | ash/shell.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698