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

Unified Diff: ash/test/test_shell_delegate.h

Issue 964503002: Implemented ForceMaximizeBrowserWindowOnFirstRun policy, added unit test and browser test. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed description Created 5 years, 10 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/test/test_shell_delegate.h
diff --git a/ash/test/test_shell_delegate.h b/ash/test/test_shell_delegate.h
index a2306bb95070b5025eb26d4a3c4a6141cafc87d6..f9655206c9ba5e7bc0347eb20de9f12b7769c35d 100644
--- a/ash/test/test_shell_delegate.h
+++ b/ash/test/test_shell_delegate.h
@@ -37,6 +37,7 @@ class TestShellDelegate : public ShellDelegate {
bool IsMultiProfilesEnabled() const override;
bool IsRunningInForcedAppMode() const override;
bool IsMultiAccountEnabled() const override;
+ bool IsFirstTimeMaximized() const override;
void PreInit() override;
void PreShutdown() override;
void Exit() override;
@@ -68,10 +69,14 @@ class TestShellDelegate : public ShellDelegate {
}
void SetMediaCaptureState(MediaCaptureState state);
+ void SetFirstTimeMaximized(bool maximized) {
bartfab (slow) 2015/03/12 11:54:43 Nit: If you rename IsFirstTimeMaximized(), rename
peletskyi 2015/03/18 13:28:09 Done.
+ first_time_maximized_ = maximized;
+ };
private:
int num_exit_requests_;
bool multi_profiles_enabled_;
+ bool first_time_maximized_;
scoped_ptr<content::BrowserContext> active_browser_context_;
scoped_ptr<app_list::AppListViewDelegate> app_list_view_delegate_;

Powered by Google App Engine
This is Rietveld 408576698