Chromium Code Reviews
[email protected] (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(382)

Issue 2419733005: Extract a base class from CommandLinePrefStore (Closed)

Created:
4 years, 2 months ago by Menglin
Modified:
4 years, 2 months ago
Reviewers:
Bernhard Bauer, sky
CC:
chromium-reviews, David Trainor- moved to gerrit
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Extract a base class from CommandLinePrefStore Currently, CommandLinePrefStore (1) holds all the {switches, preferences} maps in chrome, (2) applys the command line switches to their corresponding preferences for the maps it holds. This CL extracts the logic of applying simple command line switches to the corresponding preferences in a base class, and rename the class in chrome/ to ChromeCommandLinePrefStore. So that ChromeCommandLinePrefStore will call the Apply*Switches methods in its base class instead. We made this change because we want to be able to delegate handling Blimp command line switch to /blimp. BUG=647848 Committed: https://crrev.com/f00ece607fb01269e3f7015bbd3f0ae22a94470b Cr-Commit-Position: refs/heads/master@{#425713}

Patch Set 1 #

Total comments: 10

Patch Set 2 : Extract a base class from CommandLinePrefStore #

Total comments: 2

Patch Set 3 : nit in comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+276 lines, -897 lines) Patch
M chrome/browser/BUILD.gn View 1 2 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/chrome_browser_main.cc View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
A chrome/browser/prefs/chrome_command_line_pref_store.h View 1 1 chunk +53 lines, -0 lines 0 comments Download
A + chrome/browser/prefs/chrome_command_line_pref_store.cc View 8 chunks +35 lines, -78 lines 0 comments Download
A + chrome/browser/prefs/chrome_command_line_pref_store_proxy_unittest.cc View 5 chunks +8 lines, -8 lines 0 comments Download
A + chrome/browser/prefs/chrome_command_line_pref_store_ssl_manager_unittest.cc View 2 chunks +3 lines, -4 lines 0 comments Download
A + chrome/browser/prefs/chrome_command_line_pref_store_unittest.cc View 9 chunks +14 lines, -12 lines 0 comments Download
M chrome/browser/prefs/chrome_pref_service_factory.cc View 3 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/prefs/chrome_pref_service_unittest.cc View 2 chunks +2 lines, -2 lines 0 comments Download
D chrome/browser/prefs/command_line_pref_store.h View 1 chunk +0 lines, -77 lines 0 comments Download
D chrome/browser/prefs/command_line_pref_store.cc View 1 chunk +0 lines, -207 lines 0 comments Download
D chrome/browser/prefs/command_line_pref_store_proxy_unittest.cc View 1 chunk +0 lines, -196 lines 0 comments Download
D chrome/browser/prefs/command_line_pref_store_ssl_manager_unittest.cc View 1 chunk +0 lines, -79 lines 0 comments Download
D chrome/browser/prefs/command_line_pref_store_unittest.cc View 1 chunk +0 lines, -223 lines 0 comments Download
M chrome/browser/prefs/proxy_policy_unittest.cc View 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/test/BUILD.gn View 1 2 1 chunk +3 lines, -3 lines 0 comments Download
M components/prefs/BUILD.gn View 1 chunk +2 lines, -0 lines 0 comments Download
A components/prefs/command_line_pref_store.h View 1 2 1 chunk +66 lines, -0 lines 0 comments Download
A components/prefs/command_line_pref_store.cc View 1 1 chunk +80 lines, -0 lines 0 comments Download

Messages

Total messages: 26 (16 generated)
Menglin
[email protected]: Please review changes in chrome/browser/prefs/ and components/prefs/ [email protected]: Please review changes in chrome/browser/BUILD.gn chrome/browser/chrome_browser_main.cc ...
4 years, 2 months ago (2016-10-14 01:11:23 UTC) #2
Bernhard Bauer
https://codereview.chromium.org/2419733005/diff/1/chrome/browser/prefs/chrome_command_line_pref_store.h File chrome/browser/prefs/chrome_command_line_pref_store.h (right): https://codereview.chromium.org/2419733005/diff/1/chrome/browser/prefs/chrome_command_line_pref_store.h#newcode1 chrome/browser/prefs/chrome_command_line_pref_store.h:1: // Copyright (c) 2012 The Chromium Authors. All rights ...
4 years, 2 months ago (2016-10-14 10:06:31 UTC) #7
sky
On 2016/10/14 01:11:23, Menglin wrote: > mailto:[email protected]: Please review changes in > chrome/browser/prefs/ and components/prefs/ ...
4 years, 2 months ago (2016-10-14 15:54:04 UTC) #8
Menglin
new patch uploaded https://codereview.chromium.org/2419733005/diff/1/chrome/browser/prefs/chrome_command_line_pref_store.h File chrome/browser/prefs/chrome_command_line_pref_store.h (right): https://codereview.chromium.org/2419733005/diff/1/chrome/browser/prefs/chrome_command_line_pref_store.h#newcode1 chrome/browser/prefs/chrome_command_line_pref_store.h:1: // Copyright (c) 2012 The Chromium ...
4 years, 2 months ago (2016-10-14 17:12:04 UTC) #9
Bernhard Bauer
LGTM with one comment nit: https://codereview.chromium.org/2419733005/diff/20001/components/prefs/command_line_pref_store.h File components/prefs/command_line_pref_store.h (right): https://codereview.chromium.org/2419733005/diff/20001/components/prefs/command_line_pref_store.h#newcode14 components/prefs/command_line_pref_store.h:14: // Subclasses should call ...
4 years, 2 months ago (2016-10-17 14:46:38 UTC) #14
Menglin
https://codereview.chromium.org/2419733005/diff/20001/components/prefs/command_line_pref_store.h File components/prefs/command_line_pref_store.h (right): https://codereview.chromium.org/2419733005/diff/20001/components/prefs/command_line_pref_store.h#newcode14 components/prefs/command_line_pref_store.h:14: // Subclasses should call the Apply...Switches() methods with their ...
4 years, 2 months ago (2016-10-17 16:27:52 UTC) #15
Bernhard Bauer
Ship it :)
4 years, 2 months ago (2016-10-17 16:52:51 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2419733005/40001
4 years, 2 months ago (2016-10-17 17:24:43 UTC) #23
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 2 months ago (2016-10-17 17:29:31 UTC) #24
commit-bot: I haz the power
4 years, 2 months ago (2016-10-17 17:31:10 UTC) #26
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/f00ece607fb01269e3f7015bbd3f0ae22a94470b
Cr-Commit-Position: refs/heads/master@{#425713}

Powered by Google App Engine
This is Rietveld 408576698