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

Issue 964503002: Implemented ForceMaximizeBrowserWindowOnFirstRun policy, added unit test and browser test. (Closed)

Created:
5 years, 9 months ago by peletskyi
Modified:
5 years, 8 months ago
CC:
chromium-reviews, tdanderson+views_chromium.org, sadrul, nkostylev+watch_chromium.org, tfarina, asvitkine+watch_chromium.org, oshima+watch_chromium.org, kalyank, stevenjb+watch_chromium.org, davemoore+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Implemented ForceMaximizeBrowserWindowOnFirstRun policy, added unit test and browser test. BUG=356285 Committed: https://crrev.com/da0bbb16cc00553245e806aa8c5adc4c38f7a9ed Cr-Commit-Position: refs/heads/master@{#324244}

Patch Set 1 #

Patch Set 2 : Removed wrong added files #

Patch Set 3 : Cleaned chrome/chrome_tests.gypi #

Patch Set 4 : Fixed description #

Total comments: 198

Patch Set 5 : Fix after review #

Total comments: 120

Patch Set 6 : Fixed remarks from Bartosz #

Total comments: 2

Patch Set 7 : Added JSONWriter and removed depricated function. #

Total comments: 27

Patch Set 8 : Now we use scoped_ptr #

Total comments: 7

Patch Set 9 : #

Total comments: 2

Patch Set 10 : Renamed ForceMaximizeOnFirstRun #

Patch Set 11 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+518 lines, -147 lines) Patch
M ash/shell/shell_delegate_impl.h View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M ash/shell/shell_delegate_impl.cc View 1 2 3 4 5 6 7 8 9 1 chunk +4 lines, -0 lines 0 comments Download
M ash/shell_delegate.h View 1 2 3 4 5 6 7 8 9 1 chunk +5 lines, -0 lines 0 comments Download
M ash/test/test_shell_delegate.h View 1 2 3 4 5 6 7 8 9 2 chunks +5 lines, -0 lines 0 comments Download
M ash/test/test_shell_delegate.cc View 1 2 3 4 5 6 7 8 9 2 chunks +5 lines, -0 lines 0 comments Download
M ash/wm/window_positioner.cc View 1 2 3 4 5 6 7 8 9 3 chunks +16 lines, -6 lines 0 comments Download
M ash/wm/window_positioner_unittest.cc View 1 2 3 4 5 6 2 chunks +49 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/policy/force_maximize_on_first_run_chromeos_browsertest.cc View 1 2 3 4 5 6 7 8 1 chunk +130 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/policy/login_policy_test_base.h View 1 2 3 4 5 6 7 1 chunk +59 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/policy/login_policy_test_base.cc View 1 2 3 4 5 6 7 8 1 chunk +166 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/policy/user_cloud_policy_manager_chromeos_browsertest.cc View 1 2 3 4 5 6 7 8 1 chunk +17 lines, -140 lines 0 comments Download
M chrome/browser/chromeos/preferences.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/policy/configuration_policy_handler_list_factory.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/ui/ash/chrome_shell_delegate.h View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/ash/chrome_shell_delegate.cc View 1 2 3 4 5 6 7 8 9 2 chunks +19 lines, -0 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/common/pref_names.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/pref_names.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/test/data/policy/policy_test_cases.json View 1 2 3 4 5 1 chunk +8 lines, -0 lines 0 comments Download
M components/policy/resources/policy_templates.json View 1 2 3 4 5 6 7 8 2 chunks +16 lines, -1 line 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 33 (9 generated)
peletskyi
Hi Bartosz, can you take a look to my changes? Thanks, Oleksandr
5 years, 9 months ago (2015-02-27 09:29:59 UTC) #2
bartfab (slow)
Sorry, I really forgot to publish my comments last night. https://codereview.chromium.org/964503002/diff/60001/ash/shell/shell_delegate_impl.cc File ash/shell/shell_delegate_impl.cc (right): https://codereview.chromium.org/964503002/diff/60001/ash/shell/shell_delegate_impl.cc#newcode185 ...
5 years, 9 months ago (2015-03-12 11:54:48 UTC) #3
peletskyi
PTAL https://codereview.chromium.org/964503002/diff/60001/ash/shell/shell_delegate_impl.cc File ash/shell/shell_delegate_impl.cc (right): https://codereview.chromium.org/964503002/diff/60001/ash/shell/shell_delegate_impl.cc#newcode185 ash/shell/shell_delegate_impl.cc:185: return true; On 2015/03/12 11:54:43, bartfab wrote: > ...
5 years, 9 months ago (2015-03-18 13:28:13 UTC) #4
bartfab (slow)
https://codereview.chromium.org/964503002/diff/60001/chrome/browser/chromeos/policy/login_policy_base_test.cc File chrome/browser/chromeos/policy/login_policy_base_test.cc (right): https://codereview.chromium.org/964503002/diff/60001/chrome/browser/chromeos/policy/login_policy_base_test.cc#newcode33 chrome/browser/chromeos/policy/login_policy_base_test.cc:33: const char LoginPolicyBaseTest::kAccountId[] = "dla1@example.com"; On 2015/03/18 13:28:12, peletskyi ...
5 years, 8 months ago (2015-04-01 14:22:44 UTC) #5
peletskyi
Hi all, please take a look to the changes. I've fixed all the remarks from ...
5 years, 8 months ago (2015-04-01 18:55:47 UTC) #7
Ilya Sherman
histograms.xml lgtm -- I'm assuming that's what you wanted me to look at?
5 years, 8 months ago (2015-04-01 20:22:22 UTC) #8
bartfab (slow)
https://codereview.chromium.org/964503002/diff/60001/chrome/browser/chromeos/policy/login_policy_base_test.cc File chrome/browser/chromeos/policy/login_policy_base_test.cc (right): https://codereview.chromium.org/964503002/diff/60001/chrome/browser/chromeos/policy/login_policy_base_test.cc#newcode90 chrome/browser/chromeos/policy/login_policy_base_test.cc:90: chromeos::WizardController* wizard_controller = On 2015/04/01 18:55:45, peletskyi wrote: > ...
5 years, 8 months ago (2015-04-02 08:44:29 UTC) #9
peletskyi
Hope now it looks better :) https://codereview.chromium.org/964503002/diff/60001/chrome/browser/chromeos/policy/login_policy_base_test.cc File chrome/browser/chromeos/policy/login_policy_base_test.cc (right): https://codereview.chromium.org/964503002/diff/60001/chrome/browser/chromeos/policy/login_policy_base_test.cc#newcode90 chrome/browser/chromeos/policy/login_policy_base_test.cc:90: chromeos::WizardController* wizard_controller = ...
5 years, 8 months ago (2015-04-02 12:53:29 UTC) #11
peletskyi
oshima@ and sky@ can you please review changes in: ash/ chrome/browser/chromeos/preferences.cc chrome/browser/ui/ash/chrome_shell_delegate.* Thanks :)
5 years, 8 months ago (2015-04-02 12:58:30 UTC) #13
bartfab (slow)
lgtm https://codereview.chromium.org/964503002/diff/80001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/964503002/diff/80001/tools/metrics/histograms/histograms.xml#newcode47632 tools/metrics/histograms/histograms.xml:47632: + <int value="296" label="Force maximize browser window on ...
5 years, 8 months ago (2015-04-02 13:29:32 UTC) #14
peletskyi
Done https://codereview.chromium.org/964503002/diff/80001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/964503002/diff/80001/tools/metrics/histograms/histograms.xml#newcode47632 tools/metrics/histograms/histograms.xml:47632: + <int value="296" label="Force maximize browser window on ...
5 years, 8 months ago (2015-04-02 15:24:51 UTC) #15
bartfab (slow)
Still LGTM. https://codereview.chromium.org/964503002/diff/120001/chrome/browser/chromeos/policy/force_maximize_on_first_run_chromeos_browsertest.cc File chrome/browser/chromeos/policy/force_maximize_on_first_run_chromeos_browsertest.cc (right): https://codereview.chromium.org/964503002/diff/120001/chrome/browser/chromeos/policy/force_maximize_on_first_run_chromeos_browsertest.cc#newcode75 chrome/browser/chromeos/policy/force_maximize_on_first_run_chromeos_browsertest.cc:75: user_manager::UserManager::Get()->GetActiveUser(); On 2015/04/02 15:24:50, peletskyi wrote: > ...
5 years, 8 months ago (2015-04-07 11:37:17 UTC) #16
peletskyi
PTAL if you want to :) https://codereview.chromium.org/964503002/diff/120001/chrome/browser/chromeos/policy/force_maximize_on_first_run_chromeos_browsertest.cc File chrome/browser/chromeos/policy/force_maximize_on_first_run_chromeos_browsertest.cc (right): https://codereview.chromium.org/964503002/diff/120001/chrome/browser/chromeos/policy/force_maximize_on_first_run_chromeos_browsertest.cc#newcode75 chrome/browser/chromeos/policy/force_maximize_on_first_run_chromeos_browsertest.cc:75: user_manager::UserManager::Get()->GetActiveUser(); On 2015/04/07 ...
5 years, 8 months ago (2015-04-07 13:14:29 UTC) #17
peletskyi
On 2015/04/07 13:14:29, peletskyi wrote: > PTAL if you want to :) > > https://codereview.chromium.org/964503002/diff/120001/chrome/browser/chromeos/policy/force_maximize_on_first_run_chromeos_browsertest.cc ...
5 years, 8 months ago (2015-04-07 13:25:10 UTC) #18
bartfab (slow)
LGTM. No further nits. https://codereview.chromium.org/964503002/diff/140001/chrome/browser/chromeos/policy/force_maximize_on_first_run_chromeos_browsertest.cc File chrome/browser/chromeos/policy/force_maximize_on_first_run_chromeos_browsertest.cc (right): https://codereview.chromium.org/964503002/diff/140001/chrome/browser/chromeos/policy/force_maximize_on_first_run_chromeos_browsertest.cc#newcode54 chrome/browser/chromeos/policy/force_maximize_on_first_run_chromeos_browsertest.cc:54: const Browser* OpenNewBrowserWindow() { On ...
5 years, 8 months ago (2015-04-07 13:27:06 UTC) #19
oshima
https://codereview.chromium.org/964503002/diff/160001/ash/shell/shell_delegate_impl.h File ash/shell/shell_delegate_impl.h (right): https://codereview.chromium.org/964503002/diff/160001/ash/shell/shell_delegate_impl.h#newcode42 ash/shell/shell_delegate_impl.h:42: bool ForceMaximizeOnFirstRun() const override; Can you follow the same ...
5 years, 8 months ago (2015-04-07 16:52:15 UTC) #20
peletskyi
PTAL https://codereview.chromium.org/964503002/diff/160001/ash/shell/shell_delegate_impl.h File ash/shell/shell_delegate_impl.h (right): https://codereview.chromium.org/964503002/diff/160001/ash/shell/shell_delegate_impl.h#newcode42 ash/shell/shell_delegate_impl.h:42: bool ForceMaximizeOnFirstRun() const override; On 2015/04/07 16:52:15, oshima ...
5 years, 8 months ago (2015-04-07 17:40:43 UTC) #21
oshima
ash lgtm
5 years, 8 months ago (2015-04-07 18:30:26 UTC) #22
oshima
ash lgtm
5 years, 8 months ago (2015-04-07 18:30:27 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/964503002/180001
5 years, 8 months ago (2015-04-08 08:48:50 UTC) #26
commit-bot: I haz the power
Try jobs failed on following builders: ios_dbg_simulator_ninja on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_dbg_simulator_ninja/builds/12779) ios_rel_device_ninja on tryserver.chromium.mac (JOB_FAILED, ...
5 years, 8 months ago (2015-04-08 08:54:13 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/964503002/200001
5 years, 8 months ago (2015-04-08 12:31:55 UTC) #31
commit-bot: I haz the power
Committed patchset #11 (id:200001)
5 years, 8 months ago (2015-04-08 17:11:33 UTC) #32
commit-bot: I haz the power
5 years, 8 months ago (2015-04-08 17:12:31 UTC) #33
Message was sent while issue was closed.
Patchset 11 (id:??) landed as
https://crrev.com/da0bbb16cc00553245e806aa8c5adc4c38f7a9ed
Cr-Commit-Position: refs/heads/master@{#324244}

Powered by Google App Engine
This is Rietveld 408576698