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

Issue 18615010: Refactor utility methods out of the ProfileManager (Closed)

Created:
7 years, 5 months ago by noms (inactive)
Modified:
7 years, 5 months ago
CC:
chromium-reviews, tim+watch_chromium.org, dbeam+watch-options_chromium.org, cbentzel+watch_chromium.org, tfarina, amit, haitaol+watch_chromium.org, rginda+watch_chromium.org, robertshield, grt+watch_chromium.org, pam+watch_chromium.org, rsimha+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Refactor utility methods that don't use the ProfileManager directly out of the ProfileManager. I only picked public, static, functions that look standalone -- i.e. don't use any other functions in the ProfileManager, and only interact with other classes (browser, file paths, registry preferences) BUG=none TEST=existing unit and browser tests Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=212221

Patch Set 1 #

Patch Set 2 : rebase + fix cros compile error #

Patch Set 3 : fix CrOS compile error #

Total comments: 6

Patch Set 4 : actually fix CrOS compile error + review comments #

Total comments: 4

Patch Set 5 : fix includes #

Total comments: 4

Patch Set 6 : fix codestyle #

Patch Set 7 : rebase #

Total comments: 2

Patch Set 8 : renamed util file #

Total comments: 4

Patch Set 9 : forgot unused includes :( #

Patch Set 10 : rebase #

Patch Set 11 : unbreak rebase and added new static fn from trunk #

Unified diffs Side-by-side diffs Delta from patch set Stats (+232 lines, -151 lines) Patch
M chrome/browser/app_controller_mac.mm View 1 2 3 4 5 6 7 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/automation/testing_automation_provider.cc View 1 2 3 4 5 6 7 3 chunks +4 lines, -3 lines 0 comments Download
M chrome/browser/chrome_browser_field_trials_desktop.cc View 1 2 3 4 5 6 7 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/chrome_browser_main.cc View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/first_run/first_run.cc View 1 2 3 4 5 6 7 8 9 3 chunks +4 lines, -3 lines 0 comments Download
M chrome/browser/prefs/browser_prefs.cc View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/profiles/avatar_menu_model.cc View 1 2 3 4 5 6 7 8 9 10 4 chunks +7 lines, -5 lines 0 comments Download
M chrome/browser/profiles/avatar_menu_model_browsertest.cc View 1 2 3 4 5 6 7 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/profiles/avatar_menu_model_unittest.cc View 1 2 3 4 5 6 7 5 chunks +5 lines, -5 lines 0 comments Download
M chrome/browser/profiles/profile_manager.h View 1 2 3 4 5 6 7 8 9 10 4 chunks +0 lines, -34 lines 0 comments Download
M chrome/browser/profiles/profile_manager.cc View 1 2 3 4 5 6 7 8 9 10 12 chunks +6 lines, -79 lines 0 comments Download
A chrome/browser/profiles/profile_window.h View 1 2 3 4 5 6 7 1 chunk +30 lines, -0 lines 0 comments Download
A chrome/browser/profiles/profile_window.cc View 1 2 3 4 5 6 7 1 chunk +51 lines, -0 lines 0 comments Download
A chrome/browser/profiles/profiles_state.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +31 lines, -0 lines 0 comments Download
A chrome/browser/profiles/profiles_state.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +54 lines, -0 lines 0 comments Download
chrome/browser/ui/browser_command_controller_unittest.cc View 1 2 3 4 5 6 7 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/ui/gtk/gtk_util.cc View 1 2 3 4 5 6 7 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/ui/sync/one_click_signin_sync_starter.cc View 1 2 3 4 5 6 7 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/ui/views/avatar_menu_button.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/avatar_menu_button_browsertest.cc View 1 2 3 4 5 6 7 3 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/options/browser_options_handler.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/webui/options/browser_options_handler.cc View 1 2 3 4 5 6 7 5 chunks +6 lines, -4 lines 0 comments Download
M chrome/browser/ui/webui/options/manage_profile_handler.cc View 1 2 3 4 5 6 7 3 chunks +4 lines, -2 lines 0 comments Download
chrome/browser/ui/webui/options/managed_user_create_confirm_handler.cc View 1 2 3 4 5 6 7 2 chunks +2 lines, -1 line 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 8 9 1 chunk +4 lines, -0 lines 0 comments Download
M chrome_frame/test/net/fake_external_tab.cc View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -1 line 0 comments Download

Messages

Total messages: 29 (0 generated)
noms
Hi Roger & Sailesh, I've refactored the standalone methods out of the ProfileManager (i.e. the ...
7 years, 5 months ago (2013-07-08 19:25:40 UTC) #1
tfarina
https://codereview.chromium.org/18615010/diff/13001/chrome/browser/profiles/profile_manager_util.h File chrome/browser/profiles/profile_manager_util.h (right): https://codereview.chromium.org/18615010/diff/13001/chrome/browser/profiles/profile_manager_util.h#newcode1 chrome/browser/profiles/profile_manager_util.h:1: // Copyright (c) 2013 The Chromium Authors. All rights ...
7 years, 5 months ago (2013-07-08 19:42:51 UTC) #2
noms
https://codereview.chromium.org/18615010/diff/13001/chrome/browser/profiles/profile_manager_util.h File chrome/browser/profiles/profile_manager_util.h (right): https://codereview.chromium.org/18615010/diff/13001/chrome/browser/profiles/profile_manager_util.h#newcode1 chrome/browser/profiles/profile_manager_util.h:1: // Copyright (c) 2013 The Chromium Authors. All rights ...
7 years, 5 months ago (2013-07-08 21:44:47 UTC) #3
Roger Tawa OOO till Jul 10th
lgtm
7 years, 5 months ago (2013-07-09 14:00:43 UTC) #4
sail
Hi, I'll be away on leave for a few weeks. Maybe erg@ or mirandac@ might ...
7 years, 5 months ago (2013-07-09 14:27:27 UTC) #5
noms
Hi Miranda, would you mind taking a look at this CL? Thanks!
7 years, 5 months ago (2013-07-09 14:31:39 UTC) #6
Miranda Callahan
On 2013/07/09 14:31:39, noms wrote: > Hi Miranda, would you mind taking a look at ...
7 years, 5 months ago (2013-07-09 14:36:28 UTC) #7
Miranda Callahan
LGTM with a couple includes that can be deleted. Great work! https://codereview.chromium.org/18615010/diff/15002/chrome/browser/profiles/profile_manager.h File chrome/browser/profiles/profile_manager.h (right): ...
7 years, 5 months ago (2013-07-09 14:49:32 UTC) #8
noms
https://codereview.chromium.org/18615010/diff/15002/chrome/browser/profiles/profile_manager.h File chrome/browser/profiles/profile_manager.h (right): https://codereview.chromium.org/18615010/diff/15002/chrome/browser/profiles/profile_manager.h#newcode24 chrome/browser/profiles/profile_manager.h:24: #include "chrome/browser/ui/host_desktop.h" On 2013/07/09 14:49:33, Miranda Callahan wrote: > ...
7 years, 5 months ago (2013-07-09 15:36:04 UTC) #9
tfarina
https://codereview.chromium.org/18615010/diff/28001/chrome/browser/profiles/profile_manager_util.h File chrome/browser/profiles/profile_manager_util.h (right): https://codereview.chromium.org/18615010/diff/28001/chrome/browser/profiles/profile_manager_util.h#newcode5 chrome/browser/profiles/profile_manager_util.h:5: #ifndef CHROME_BROWSER_PROFILES_PROFILE_MANAGER_UTIL_H_ is this super related to ProfileManager? if ...
7 years, 5 months ago (2013-07-09 16:10:45 UTC) #10
tfarina
https://codereview.chromium.org/18615010/diff/28001/chrome/browser/profiles/profile_manager_util.h File chrome/browser/profiles/profile_manager_util.h (right): https://codereview.chromium.org/18615010/diff/28001/chrome/browser/profiles/profile_manager_util.h#newcode5 chrome/browser/profiles/profile_manager_util.h:5: #ifndef CHROME_BROWSER_PROFILES_PROFILE_MANAGER_UTIL_H_ is this super related to ProfileManager? if ...
7 years, 5 months ago (2013-07-09 16:10:45 UTC) #11
noms
+ Nico for top-level chrome/ owner stamp + Greg for chrome_frame/test owner stamp (for context: ...
7 years, 5 months ago (2013-07-09 17:47:39 UTC) #12
Nico
We discourage _util files, see this (badly titled) thread: https://groups.google.com/a/chromium.org/forum/#!topic/chromium-dev/cb2KPb0KG40 Can you think of a ...
7 years, 5 months ago (2013-07-09 17:58:06 UTC) #13
noms
The only other name I can think of is _helpers, which I think might be ...
7 years, 5 months ago (2013-07-09 20:37:13 UTC) #14
noms
s/grt/erikwright/ for chrome_frame/test owner stamp, as Greg is out of office :)
7 years, 5 months ago (2013-07-11 15:01:15 UTC) #15
erikwright (departed)
chrome_frame/ LGTM
7 years, 5 months ago (2013-07-11 15:02:18 UTC) #16
noms
Nico: ping
7 years, 5 months ago (2013-07-11 17:16:38 UTC) #17
noms
Nico: pong? :) On 2013/07/11 17:16:38, noms wrote: > Nico: ping
7 years, 5 months ago (2013-07-15 14:35:33 UTC) #18
Nico
https://codereview.chromium.org/18615010/diff/48001/chrome/browser/profiles/profile_manager_util.h File chrome/browser/profiles/profile_manager_util.h (right): https://codereview.chromium.org/18615010/diff/48001/chrome/browser/profiles/profile_manager_util.h#newcode28 chrome/browser/profiles/profile_manager_util.h:28: void RegisterPrefs(PrefRegistrySimple* registry); I'd go with profiles_state.h for the ...
7 years, 5 months ago (2013-07-15 23:54:29 UTC) #19
noms
https://codereview.chromium.org/18615010/diff/48001/chrome/browser/profiles/profile_manager_util.h File chrome/browser/profiles/profile_manager_util.h (right): https://codereview.chromium.org/18615010/diff/48001/chrome/browser/profiles/profile_manager_util.h#newcode28 chrome/browser/profiles/profile_manager_util.h:28: void RegisterPrefs(PrefRegistrySimple* registry); On 2013/07/15 23:54:30, Nico wrote: > ...
7 years, 5 months ago (2013-07-16 18:10:40 UTC) #20
tfarina
https://codereview.chromium.org/18615010/diff/58001/chrome/browser/profiles/profiles_state.cc File chrome/browser/profiles/profiles_state.cc (right): https://codereview.chromium.org/18615010/diff/58001/chrome/browser/profiles/profiles_state.cc#newcode10 chrome/browser/profiles/profiles_state.cc:10: #include "chrome/browser/profiles/profile.h" can you remove this? https://codereview.chromium.org/18615010/diff/58001/chrome/browser/profiles/profiles_state.h File chrome/browser/profiles/profiles_state.h ...
7 years, 5 months ago (2013-07-16 18:15:03 UTC) #21
noms
https://codereview.chromium.org/18615010/diff/58001/chrome/browser/profiles/profiles_state.cc File chrome/browser/profiles/profiles_state.cc (right): https://codereview.chromium.org/18615010/diff/58001/chrome/browser/profiles/profiles_state.cc#newcode10 chrome/browser/profiles/profiles_state.cc:10: #include "chrome/browser/profiles/profile.h" On 2013/07/16 18:15:04, tfarina wrote: > can ...
7 years, 5 months ago (2013-07-16 18:24:02 UTC) #22
Nico
lgtm
7 years, 5 months ago (2013-07-16 19:41:24 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/noms@chromium.org/18615010/81001
7 years, 5 months ago (2013-07-16 20:14:42 UTC) #24
commit-bot: I haz the power
Retried try job too often on win7_aura for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win7_aura&number=60089
7 years, 5 months ago (2013-07-17 05:11:55 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/noms@chromium.org/18615010/81001
7 years, 5 months ago (2013-07-17 13:25:03 UTC) #26
commit-bot: I haz the power
Failed to apply patch for chrome/browser/profiles/avatar_menu_model.cc: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
7 years, 5 months ago (2013-07-17 13:25:08 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/noms@chromium.org/18615010/106001
7 years, 5 months ago (2013-07-17 15:50:30 UTC) #28
commit-bot: I haz the power
7 years, 5 months ago (2013-07-18 03:30:41 UTC) #29
Message was sent while issue was closed.
Change committed as 212221

Powered by Google App Engine
This is Rietveld 408576698