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

Unified Diff: ui/app_list/test/app_list_test_view_delegate.cc

Issue 283443003: AppListTestViewDelegate::ShouldCenterWindow returns the proper value. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/app_list/test/app_list_test_view_delegate.cc
diff --git a/ui/app_list/test/app_list_test_view_delegate.cc b/ui/app_list/test/app_list_test_view_delegate.cc
index 0f4aa5f0f0405ff5a1235078b216f469e05bc28c..ab712bfadbd1ea2224b1f6bd8701ad77da792a66 100644
--- a/ui/app_list/test/app_list_test_view_delegate.cc
+++ b/ui/app_list/test/app_list_test_view_delegate.cc
@@ -9,6 +9,7 @@
#include "base/callback.h"
#include "base/files/file_path.h"
#include "ui/app_list/app_list_model.h"
+#include "ui/app_list/app_list_switches.h"
#include "ui/app_list/app_list_view_delegate_observer.h"
#include "ui/app_list/signin_delegate.h"
#include "ui/app_list/test/app_list_test_model.h"
@@ -130,7 +131,7 @@ const AppListViewDelegate::Users& AppListTestViewDelegate::GetUsers() const {
}
bool AppListTestViewDelegate::ShouldCenterWindow() const {
- return false;
+ return app_list::switches::IsCenteredAppListEnabled();
Matt Giuca 2014/05/12 06:30:38 Note: To understand what this is doing, have a loo
}
void AppListTestViewDelegate::ReplaceTestModel(int item_count) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698