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

Issue 13468005: Show only the settings pages for new managed users (Closed)

Created:
7 years, 8 months ago by Sergiu
Modified:
7 years, 8 months ago
CC:
chromium-reviews
Visibility:
Public.

Description

Show only the settings pages for new managed users Currently when creating a new managed user we open other tabs in addition to the managed users settings one, which we don't want to do. This makes sure that only that tab gets added to the list of URLs to open on start-up by early-returning from that function. R=ben@chromium.org BUG=171370 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=192551

Patch Set 1 #

Patch Set 2 : Rebase #

Patch Set 3 : Add a browser test #

Patch Set 4 : Remove extra line #

Total comments: 6

Patch Set 5 : Fixes #

Total comments: 13

Patch Set 6 : Minor fixes #

Patch Set 7 : Return the browser #

Patch Set 8 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+95 lines, -53 lines) Patch
M chrome/browser/ui/startup/startup_browser_creator_browsertest.cc View 1 2 3 4 5 6 14 chunks +77 lines, -39 lines 0 comments Download
M chrome/browser/ui/startup/startup_browser_creator_impl.cc View 1 2 3 4 5 6 7 2 chunks +14 lines, -14 lines 0 comments Download
M chrome/browser/ui/webui/sync_promo/sync_promo_ui.cc View 1 2 3 4 5 6 7 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 18 (0 generated)
Sergiu
Hey Ben, please take a look. Thanks.
7 years, 8 months ago (2013-04-02 14:28:37 UTC) #1
Ben Goodger (Google)
Seems like you could write a test for this, e.g. in startup_browser_creator_browsertest.cc.
7 years, 8 months ago (2013-04-02 20:31:31 UTC) #2
Sergiu
Added a browser test as well, hope that is ok.
7 years, 8 months ago (2013-04-03 16:26:59 UTC) #3
Bernhard Bauer
https://codereview.chromium.org/13468005/diff/10004/chrome/browser/ui/startup/startup_browser_creator_browsertest.cc File chrome/browser/ui/startup/startup_browser_creator_browsertest.cc (right): https://codereview.chromium.org/13468005/diff/10004/chrome/browser/ui/startup/startup_browser_creator_browsertest.cc#newcode904 chrome/browser/ui/startup/startup_browser_creator_browsertest.cc:904: void FindOneOtherBrowser(Browser** out_other_browser) { This method is a copy ...
7 years, 8 months ago (2013-04-03 16:41:23 UTC) #4
Sergiu
+dbeam for sync_promo_ui.cc change. Thanks https://codereview.chromium.org/13468005/diff/10004/chrome/browser/ui/startup/startup_browser_creator_browsertest.cc File chrome/browser/ui/startup/startup_browser_creator_browsertest.cc (right): https://codereview.chromium.org/13468005/diff/10004/chrome/browser/ui/startup/startup_browser_creator_browsertest.cc#newcode904 chrome/browser/ui/startup/startup_browser_creator_browsertest.cc:904: void FindOneOtherBrowser(Browser** out_other_browser) { ...
7 years, 8 months ago (2013-04-03 17:45:54 UTC) #5
Bernhard Bauer
LGTM with a nit and some cleanup that would be nice: https://codereview.chromium.org/13468005/diff/21001/chrome/browser/ui/startup/startup_browser_creator_browsertest.cc File chrome/browser/ui/startup/startup_browser_creator_browsertest.cc (right): ...
7 years, 8 months ago (2013-04-03 17:55:20 UTC) #6
Dan Beam
+sail@ as he knows this code and wants to be CC'd on sync promo CLs ...
7 years, 8 months ago (2013-04-03 23:39:20 UTC) #7
Dan Beam
https://codereview.chromium.org/13468005/diff/21001/chrome/browser/ui/webui/sync_promo/sync_promo_ui.cc File chrome/browser/ui/webui/sync_promo/sync_promo_ui.cc (right): https://codereview.chromium.org/13468005/diff/21001/chrome/browser/ui/webui/sync_promo/sync_promo_ui.cc#newcode137 chrome/browser/ui/webui/sync_promo/sync_promo_ui.cc:137: if (profile->GetPrefs()->GetBoolean(prefs::kProfileIsManaged)) On 2013/04/03 23:39:20, Dan Beam wrote: > ...
7 years, 8 months ago (2013-04-04 00:01:45 UTC) #8
Dan Beam
https://codereview.chromium.org/13468005/diff/21001/chrome/browser/ui/webui/sync_promo/sync_promo_ui.cc File chrome/browser/ui/webui/sync_promo/sync_promo_ui.cc (right): https://codereview.chromium.org/13468005/diff/21001/chrome/browser/ui/webui/sync_promo/sync_promo_ui.cc#newcode137 chrome/browser/ui/webui/sync_promo/sync_promo_ui.cc:137: if (profile->GetPrefs()->GetBoolean(prefs::kProfileIsManaged)) On 2013/04/04 00:01:45, Dan Beam wrote: > ...
7 years, 8 months ago (2013-04-04 01:12:59 UTC) #9
Sergiu
https://codereview.chromium.org/13468005/diff/21001/chrome/browser/ui/startup/startup_browser_creator_browsertest.cc File chrome/browser/ui/startup/startup_browser_creator_browsertest.cc (right): https://codereview.chromium.org/13468005/diff/21001/chrome/browser/ui/startup/startup_browser_creator_browsertest.cc#newcode43 chrome/browser/ui/startup/startup_browser_creator_browsertest.cc:43: void FindOneOtherBrowser(Browser* browser, Browser** out_other_browser) { On 2013/04/03 17:55:20, ...
7 years, 8 months ago (2013-04-04 09:02:54 UTC) #10
Bernhard Bauer
https://codereview.chromium.org/13468005/diff/21001/chrome/browser/ui/startup/startup_browser_creator_browsertest.cc File chrome/browser/ui/startup/startup_browser_creator_browsertest.cc (right): https://codereview.chromium.org/13468005/diff/21001/chrome/browser/ui/startup/startup_browser_creator_browsertest.cc#newcode43 chrome/browser/ui/startup/startup_browser_creator_browsertest.cc:43: void FindOneOtherBrowser(Browser* browser, Browser** out_other_browser) { On 2013/04/04 09:02:55, ...
7 years, 8 months ago (2013-04-04 09:08:40 UTC) #11
Dan Beam
lgtm
7 years, 8 months ago (2013-04-04 09:15:12 UTC) #12
Sergiu
On 2013/04/04 09:08:40, Bernhard Bauer wrote: > https://codereview.chromium.org/13468005/diff/21001/chrome/browser/ui/startup/startup_browser_creator_browsertest.cc > File chrome/browser/ui/startup/startup_browser_creator_browsertest.cc (right): > > https://codereview.chromium.org/13468005/diff/21001/chrome/browser/ui/startup/startup_browser_creator_browsertest.cc#newcode43 ...
7 years, 8 months ago (2013-04-04 10:50:22 UTC) #13
Bernhard Bauer
lgtm
7 years, 8 months ago (2013-04-04 11:41:55 UTC) #14
Sergiu
Ben, can I get an OWNERS review? Thanks, Sergiu
7 years, 8 months ago (2013-04-04 18:22:58 UTC) #15
Ben Goodger (Google)
lgtm
7 years, 8 months ago (2013-04-04 20:04:59 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sergiu@chromium.org/13468005/44001
7 years, 8 months ago (2013-04-05 08:03:18 UTC) #17
commit-bot: I haz the power
7 years, 8 months ago (2013-04-05 13:05:20 UTC) #18
Message was sent while issue was closed.
Change committed as 192551

Powered by Google App Engine
This is Rietveld 408576698