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

Issue 5915006: Remove user-related data from local_state and add to user_preferences, i... (Closed)

Created:
10 years ago by Miranda Callahan
Modified:
9 years, 7 months ago
CC:
chromium-reviews, pam+watch_chromium.org, cbentzel+watch_chromium.org, darin-cc_chromium.org, Paweł Hajdan Jr.
Visibility:
Public.

Description

Remove user-related data from local_state and add to user_preferences, in preparation for multi-profile. devtools kDevToolsSplitLocation browser kBrowserWindowPlacement Also add a method to browser_prefs to delete obsolete preferences from local state, and fix all related tests. BUG=66717 TEST=all browser, interactive, and ui tests work properly Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=72153 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=73481

Patch Set 1 #

Patch Set 2 : fix merge errors #

Patch Set 3 : Fix GoogleURLTracker unit tests #

Patch Set 4 : Add profile_manager.h to win and linux task_managers #

Patch Set 5 : Fix win error in task_manager_view. #

Patch Set 6 : Register kDevToolsSplitLocation pref #

Patch Set 7 : add kBrowserWindowPlacement #

Patch Set 8 : Do not include task manager prefs. Local state is correct place. #

Patch Set 9 : Only window size and shape prefs in this CL. #

Patch Set 10 : Fix Linux window placement registration. #

Patch Set 11 : Small tweak fixes. #

Patch Set 12 : Add chrome_views_delegate. #

Patch Set 13 : gclient sync #

Patch Set 14 : fix linux really #

Patch Set 15 : sync #

Patch Set 16 : fix ChromeViewDelegate #

Patch Set 17 : svn pset #

Total comments: 4

Patch Set 18 : '' #

Patch Set 19 : '' #

Patch Set 20 : '' #

Patch Set 21 : '' #

Patch Set 22 : '' #

Patch Set 23 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+254 lines, -89 lines) Patch
M chrome/browser/debugger/devtools_window.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/net/predictor_api.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 2 chunks +6 lines, -6 lines 0 comments Download
M chrome/browser/prefs/browser_prefs.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 2 chunks +10 lines, -2 lines 0 comments Download
M chrome/browser/prefs/browser_prefs.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 2 chunks +32 lines, -0 lines 0 comments Download
M chrome/browser/prefs/pref_service_uitest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 4 chunks +85 lines, -11 lines 0 comments Download
M chrome/browser/profiles/profile_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/ui/browser.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +4 lines, -3 lines 0 comments Download
M chrome/browser/ui/browser.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 22 8 chunks +9 lines, -12 lines 0 comments Download
M chrome/browser/ui/cocoa/browser_window_controller.mm View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 2 chunks +4 lines, -2 lines 0 comments Download
M chrome/browser/ui/cocoa/browser_window_controller_private.mm View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +4 lines, -3 lines 0 comments Download
M chrome/browser/ui/cocoa/browser_window_controller_unittest.mm View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +1 line, -3 lines 0 comments Download
M chrome/browser/ui/cocoa/dev_tools_controller.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 2 chunks +4 lines, -2 lines 0 comments Download
M chrome/browser/ui/cocoa/dev_tools_controller.mm View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 5 chunks +12 lines, -7 lines 0 comments Download
M chrome/browser/ui/cocoa/options/preferences_window_controller.mm View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/gtk/browser_window_gtk.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 3 chunks +7 lines, -7 lines 0 comments Download
M chrome/browser/ui/views/chrome_views_delegate.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 5 chunks +34 lines, -9 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_view.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 2 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/ui/window_sizer.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/ui/window_sizer.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 6 chunks +10 lines, -9 lines 0 comments Download
M chrome/common/pref_names.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +6 lines, -4 lines 0 comments Download
A chrome/test/data/profiles/window_placement/Default/Preferences View 1 2 3 4 5 6 16 17 18 19 20 21 22 1 chunk +11 lines, -0 lines 0 comments Download

Messages

Total messages: 20 (0 generated)
Miranda Callahan
Apavlov, if you could review the devtools change, and Ben, if you could look at ...
9 years, 11 months ago (2011-01-13 21:56:48 UTC) #1
Ben Goodger (Google)
How is per-profile data that is local-only (not to be synced) handled?
9 years, 11 months ago (2011-01-13 22:02:10 UTC) #2
mirandac
That data will remain in Local State, etc.; there will be separate folders for per-profile ...
9 years, 11 months ago (2011-01-13 22:13:38 UTC) #3
Ben Goodger (Google)
http://codereview.chromium.org/5915006/diff/174001/chrome/browser/net/predictor_api.cc File chrome/browser/net/predictor_api.cc (left): http://codereview.chromium.org/5915006/diff/174001/chrome/browser/net/predictor_api.cc#oldcode396 chrome/browser/net/predictor_api.cc:396: // Remove obsolete preferences from local state if necessary. ...
9 years, 11 months ago (2011-01-13 22:21:23 UTC) #4
Miranda Callahan
http://codereview.chromium.org/5915006/diff/174001/chrome/browser/net/predictor_api.cc File chrome/browser/net/predictor_api.cc (left): http://codereview.chromium.org/5915006/diff/174001/chrome/browser/net/predictor_api.cc#oldcode396 chrome/browser/net/predictor_api.cc:396: // Remove obsolete preferences from local state if necessary. ...
9 years, 11 months ago (2011-01-13 22:29:37 UTC) #5
Ben Goodger (Google)
http://codereview.chromium.org/5915006/diff/174001/chrome/browser/net/predictor_api.cc File chrome/browser/net/predictor_api.cc (left): http://codereview.chromium.org/5915006/diff/174001/chrome/browser/net/predictor_api.cc#oldcode396 chrome/browser/net/predictor_api.cc:396: // Remove obsolete preferences from local state if necessary. ...
9 years, 11 months ago (2011-01-13 22:32:56 UTC) #6
Miranda Callahan
On 2011/01/13 22:29:37, Miranda Callahan wrote: > http://codereview.chromium.org/5915006/diff/174001/chrome/browser/net/predictor_api.cc > File chrome/browser/net/predictor_api.cc (left): > > http://codereview.chromium.org/5915006/diff/174001/chrome/browser/net/predictor_api.cc#oldcode396 ...
9 years, 11 months ago (2011-01-13 22:33:17 UTC) #7
Miranda Callahan
On 2011/01/13 22:02:10, Ben Goodger wrote: > How is per-profile data that is local-only (not ...
9 years, 11 months ago (2011-01-14 17:44:56 UTC) #8
Ben Goodger (Google)
Should I continue to look at this or are you making further changes? -Ben On ...
9 years, 11 months ago (2011-01-14 17:48:04 UTC) #9
Miranda Callahan
I have a CL with new unit tests in the works right now -- will ...
9 years, 11 months ago (2011-01-14 17:50:43 UTC) #10
apavlov
http://codereview.chromium.org/5915006/diff/174001/chrome/browser/debugger/devtools_window.cc File chrome/browser/debugger/devtools_window.cc (right): http://codereview.chromium.org/5915006/diff/174001/chrome/browser/debugger/devtools_window.cc#newcode223 chrome/browser/debugger/devtools_window.cc:223: prefs->RegisterDictionaryPref(wp_key.c_str()); I have no relation to this code, but ...
9 years, 11 months ago (2011-01-18 00:33:03 UTC) #11
Miranda Callahan
Finally ready for another review; some ChromeOS compatibility issues came up that took a bit ...
9 years, 11 months ago (2011-01-20 16:14:29 UTC) #12
Miranda Callahan
Another note: the windows try bot won't accept my changes to Local State because it's ...
9 years, 11 months ago (2011-01-20 16:18:17 UTC) #13
Miranda Callahan
Ok, ready for review with almost every profile accessed from the browser or the profile ...
9 years, 11 months ago (2011-01-21 15:15:08 UTC) #14
Ben Goodger (Google)
Much better! LGTM.
9 years, 11 months ago (2011-01-21 15:34:08 UTC) #15
pfeldman
DevTools part LGTM.
9 years, 11 months ago (2011-01-21 16:28:18 UTC) #16
DaveMoore
pref migration code lgtm
9 years, 11 months ago (2011-01-21 17:46:27 UTC) #17
Miranda Callahan
Ben, I need one more review of chrome_views_delegate.cc -- I had to revert this because ...
9 years, 11 months ago (2011-01-25 21:27:19 UTC) #18
Miranda Callahan
(It passed all trybots with patch set 18; set 19 just fixes a comment.)
9 years, 11 months ago (2011-01-25 21:28:06 UTC) #19
Ben Goodger (Google)
9 years, 11 months ago (2011-01-26 23:40:27 UTC) #20
This change LGTM... as a side note, if the task manager shows items from
multiple profiles we are probably going to want a column to show what
profile the item comes from.

That Task Manager redesign can't come soon enough...

-Ben

On Tue, Jan 25, 2011 at 1:28 PM, <mirandac@chromium.org> wrote:

> (It passed all trybots with patch set 18; set 19 just fixes a comment.)
>
>
>
>
> http://codereview.chromium.org/5915006/
>

Powered by Google App Engine
This is Rietveld 408576698