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

Issue 159539: Refactoring of master preferences parsing before adding a new preference. (Closed)

Created:
11 years, 4 months ago by kuchhal
Modified:
9 years, 7 months ago
Reviewers:
cpu_(ooo_6.6-7.5)
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Refactoring of master preferences parsing before adding a new preference. Currently we are parsing master preferences file three time on startup. Since we only return an int bit mask flag after parsing preferences, it can not handle any preference other than boolean and we end up reading it again for first run tabs and ping delay. This change refactors all the preferences parsing logic to directly pass around DictionaryValue object around in Chrome as well as installer. No functional change but this will make adding a new preference for new icon more logical since we will not read the preferences file once again. BUG=12701 TEST=Make sure all the distribution preferences still work as before. Committed: http://src.chromium.org/viewvc/22284

Patch Set 1 #

Patch Set 2 : cleanup #

Patch Set 3 : eols cleanup #

Patch Set 4 : fix distribution key bug #

Patch Set 5 : fix unit tests #

Total comments: 2

Patch Set 6 : rename variable #

Unified diffs Side-by-side diffs Delta from patch set Stats (+325 lines, -366 lines) Patch
M chrome/browser/browser_main.cc View 1 2 3 4 5 2 chunks +6 lines, -6 lines 0 comments Download
M chrome/browser/first_run.h View 1 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/first_run_win.cc View 1 2 3 4 5 6 chunks +26 lines, -22 lines 0 comments Download
M chrome/common/temp_scaffolding_stubs.cc View 1 2 3 4 5 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/installer/setup/install.h View 3 chunks +3 lines, -4 lines 0 comments Download
M chrome/installer/setup/install.cc View 1 7 chunks +31 lines, -25 lines 0 comments Download
M chrome/installer/setup/setup_main.cc View 1 2 3 12 chunks +67 lines, -74 lines 0 comments Download
M chrome/installer/util/browser_distribution.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/installer/util/browser_distribution.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/installer/util/google_chrome_distribution.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/installer/util/google_chrome_distribution.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/installer/util/google_chrome_distribution_unittest.cc View 3 chunks +50 lines, -27 lines 0 comments Download
M chrome/installer/util/master_preferences.h View 1 2 3 4 chunks +67 lines, -60 lines 0 comments Download
M chrome/installer/util/master_preferences.cc View 1 2 3 2 chunks +66 lines, -114 lines 0 comments Download
M chrome/installer/util/util_constants.h View 1 chunk +0 lines, -25 lines 0 comments Download

Messages

Total messages: 1 (0 generated)
cpu_(ooo_6.6-7.5)
11 years, 4 months ago (2009-07-31 19:55:11 UTC) #1
LGTM

some nits below.

http://codereview.chromium.org/159539/diff/1032/46
File chrome/browser/browser_main.cc (right):

http://codereview.chromium.org/159539/diff/1032/46#newcode445
Line 445: int ping_delay = 0;
in the context of  main, "ping_delay" seems too obscure, it should be
rlz_ping_delay.

http://codereview.chromium.org/159539/diff/1032/50
File chrome/installer/setup/install.cc (right):

http://codereview.chromium.org/159539/diff/1032/50#newcode6
Line 6: #include <time.h>
you removed <windows.h> from the header, do you want to add it back here?

Powered by Google App Engine
This is Rietveld 408576698