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

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: Created 5 years, 8 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 | « ash/shell_delegate.h ('k') | ash/test/test_shell_delegate.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/test/test_shell_delegate.h
diff --git a/ash/test/test_shell_delegate.h b/ash/test/test_shell_delegate.h
index 95e9487d5e6bc03fd2fbccc1be2194b5257ef260..9b273fc9a48134bae5f9f2e6d7420b1e8ee5fdba 100644
--- a/ash/test/test_shell_delegate.h
+++ b/ash/test/test_shell_delegate.h
@@ -36,6 +36,7 @@ class TestShellDelegate : public ShellDelegate {
bool IsMultiProfilesEnabled() const override;
bool IsRunningInForcedAppMode() const override;
bool IsMultiAccountEnabled() const override;
+ bool IsForceMaximizeOnFirstRun() const override;
void PreInit() override;
void PreShutdown() override;
void Exit() override;
@@ -63,10 +64,14 @@ class TestShellDelegate : public ShellDelegate {
int num_exit_requests() const { return num_exit_requests_; }
void SetMediaCaptureState(MediaCaptureState state);
+ void SetForceMaximizeOnFirstRun(bool maximize) {
+ force_maximize_on_first_run_ = maximize;
+ };
private:
int num_exit_requests_;
bool multi_profiles_enabled_;
+ bool force_maximize_on_first_run_;
scoped_ptr<content::BrowserContext> active_browser_context_;
scoped_ptr<app_list::AppListViewDelegate> app_list_view_delegate_;
« no previous file with comments | « ash/shell_delegate.h ('k') | ash/test/test_shell_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698