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

Issue 27354: Add FilePath setter/getter to pref service.... (Closed)

Created:
11 years, 9 months ago by Evan Stade
Modified:
9 years, 6 months ago
Reviewers:
tony
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Add FilePath setter/getter to pref service. Change callers to use it rather than the string methods. Update the pref service unit test and enable it on linux. Also switch over some wstrings to filepaths where appropriate. BUG=8154 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=10844

Patch Set 1 #

Total comments: 2

Patch Set 2 : '' #

Patch Set 3 : '' #

Patch Set 4 : '' #

Patch Set 5 : '' #

Patch Set 6 : '' #

Patch Set 7 : '' #

Patch Set 8 : '' #

Patch Set 9 : '' #

Patch Set 10 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+108 lines, -49 lines) Patch
M chrome/browser/browser_main.cc View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/browser_process_impl.cc View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/download/download_manager.cc View 4 5 6 7 8 9 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/download/save_package.cc View 4 5 6 7 8 9 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/metrics/metrics_service_uitest.cc View 5 6 7 8 9 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/profile.cc View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/tab_contents/web_contents_unittest.cc View 5 6 7 8 9 1 chunk +3 lines, -4 lines 0 comments Download
M chrome/common/chrome_constants.h View 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M chrome/common/chrome_constants.cc View 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M chrome/common/chrome_paths.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/common/pref_service.h View 1 2 3 4 5 6 7 8 9 7 chunks +8 lines, -3 lines 0 comments Download
M chrome/common/pref_service.cc View 1 2 3 4 5 6 7 8 9 10 chunks +55 lines, -7 lines 0 comments Download
M chrome/common/pref_service_unittest.cc View 3 4 5 6 7 8 9 8 chunks +23 lines, -17 lines 0 comments Download
M chrome/test/data/pref_service/read.json View 3 4 5 6 7 8 9 1 chunk +2 lines, -1 line 0 comments Download
M chrome/test/data/pref_service/write.golden.json View 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M chrome/test/reliability/page_load_test.cc View 5 6 7 8 9 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/test/testing_profile.h View 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M chrome/test/unit/unit_tests.scons View 3 4 5 6 7 8 9 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 5 (0 generated)
Evan Stade
this is only step 1. Step 2 is to actually update the callers (including unit ...
11 years, 9 months ago (2009-03-02 22:42:45 UTC) #1
tony
http://codereview.chromium.org/27354/diff/1/5 File chrome/common/pref_service.h (right): http://codereview.chromium.org/27354/diff/1/5#newcode156 Line 156: void SetString(const wchar_t* path, const std::wstring& value); Shouldn't ...
11 years, 9 months ago (2009-03-02 22:57:56 UTC) #2
Evan Stade
http://codereview.chromium.org/27354/diff/1/5 File chrome/common/pref_service.h (right): http://codereview.chromium.org/27354/diff/1/5#newcode156 Line 156: void SetString(const wchar_t* path, const std::wstring& value); On ...
11 years, 9 months ago (2009-03-02 23:07:07 UTC) #3
Evan Stade
ah nevermind this isn't ready, gotta port some unit tests
11 years, 9 months ago (2009-03-02 23:13:38 UTC) #4
Evan Stade
11 years, 9 months ago (2009-03-03 19:20:27 UTC) #5
ok, this really doesn't want to upload. The download raw patch set link works
though. And really, who needs color coding?

I had to port a bunch more unit tests (it was definitely a mistake to convert
the PrefService constructor to to filepaths in this same patch).

Powered by Google App Engine
This is Rietveld 408576698