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

Issue 10834109: Consistently decorate pref values sent to the settings UI code (Closed)

Created:
8 years, 4 months ago by bartfab (slow)
Modified:
8 years, 4 months ago
CC:
chromium-reviews, nkostylev+watch_chromium.org, kkania, arv (Not doing code reviews), robertshield, oshima+watch_chromium.org, stevenjb+watch_chromium.org, davemoore+watch_chromium.org
Visibility:
Public.

Description

Consistently decorate pref values sent to the settings UI code Pref values are provided to the settings UI code by three different classes. Each decorates the values slightly differently, adding different metadata fields or none at all. This CL makes the classes use a consistent decoration with identically named metadata fields, simplifying the handling of pref values on the JS side. BUG=104955 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=150527

Patch Set 1 #

Patch Set 2 : Updated copyright year. #

Patch Set 3 : Browser test added. #

Total comments: 28

Patch Set 4 : Comments addressed. #

Total comments: 6

Patch Set 5 : One nit addressed, the other is pending discussion. #

Patch Set 6 : Nit addressed. #

Patch Set 7 : Silly me, made a CrOS-only change and tested it on a desktop build... #

Unified diffs Side-by-side diffs Delta from patch set Stats (+567 lines, -110 lines) Patch
M chrome/browser/automation/testing_automation_provider_chromeos.cc View 1 2 3 4 5 6 1 chunk +8 lines, -16 lines 0 comments Download
M chrome/browser/chromeos/proxy_cros_settings_parser.cc View 1 4 chunks +16 lines, -31 lines 0 comments Download
M chrome/browser/resources/options2/browser_options.js View 7 chunks +12 lines, -12 lines 0 comments Download
M chrome/browser/resources/options2/chromeos/accounts_user_list.js View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/resources/options2/chromeos/network_list.js View 1 2 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/resources/options2/chromeos/proxy_rules_list.js View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/resources/options2/pref_ui.js View 8 chunks +9 lines, -20 lines 0 comments Download
M chrome/browser/ui/webui/options2/chromeos/core_chromeos_options_handler.cc View 2 chunks +12 lines, -27 lines 0 comments Download
A chrome/browser/ui/webui/options2/preferences_browsertest.h View 1 2 3 1 chunk +93 lines, -0 lines 0 comments Download
A chrome/browser/ui/webui/options2/preferences_browsertest.cc View 1 2 3 4 5 1 chunk +412 lines, -0 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 16 (0 generated)
bartfab (slow)
Hi everyone, could you please have a look? I believe you should be the most ...
8 years, 4 months ago (2012-08-01 17:17:19 UTC) #1
darin (slow to review)
rubber stamp LGTM for automation
8 years, 4 months ago (2012-08-02 06:19:38 UTC) #2
Nikita (slow)
lgtm
8 years, 4 months ago (2012-08-02 07:46:11 UTC) #3
James Hawkins
Per-offline, waiting for the next patch which should contain tests.
8 years, 4 months ago (2012-08-02 20:52:07 UTC) #4
bartfab (slow)
Hi James I see now why there was no test for this stuff: It took ...
8 years, 4 months ago (2012-08-07 17:51:29 UTC) #5
James Hawkins
https://chromiumcodereview.appspot.com/10834109/diff/8001/chrome/browser/automation/testing_automation_provider_chromeos.cc File chrome/browser/automation/testing_automation_provider_chromeos.cc (right): https://chromiumcodereview.appspot.com/10834109/diff/8001/chrome/browser/automation/testing_automation_provider_chromeos.cc#newcode96 chrome/browser/automation/testing_automation_provider_chromeos.cc:96: delete setting; nit: Wrap the returned value in a ...
8 years, 4 months ago (2012-08-07 17:59:04 UTC) #6
bartfab (slow)
https://chromiumcodereview.appspot.com/10834109/diff/8001/chrome/browser/automation/testing_automation_provider_chromeos.cc File chrome/browser/automation/testing_automation_provider_chromeos.cc (right): https://chromiumcodereview.appspot.com/10834109/diff/8001/chrome/browser/automation/testing_automation_provider_chromeos.cc#newcode96 chrome/browser/automation/testing_automation_provider_chromeos.cc:96: delete setting; On 2012/08/07 17:59:05, James Hawkins wrote: > ...
8 years, 4 months ago (2012-08-07 18:27:04 UTC) #7
James Hawkins
LGTM with nits. https://chromiumcodereview.appspot.com/10834109/diff/10/chrome/browser/ui/webui/options2/preferences_browsertest.cc File chrome/browser/ui/webui/options2/preferences_browsertest.cc (right): https://chromiumcodereview.appspot.com/10834109/diff/10/chrome/browser/ui/webui/options2/preferences_browsertest.cc#newcode121 chrome/browser/ui/webui/options2/preferences_browsertest.cc:121: ASSERT_TRUE(prefs); nit: Don't assert here. https://chromiumcodereview.appspot.com/10834109/diff/10/chrome/browser/ui/webui/options2/preferences_browsertest.cc#newcode156 ...
8 years, 4 months ago (2012-08-07 18:29:50 UTC) #8
bartfab (slow)
One nit address, question on the other. https://chromiumcodereview.appspot.com/10834109/diff/10/chrome/browser/ui/webui/options2/preferences_browsertest.cc File chrome/browser/ui/webui/options2/preferences_browsertest.cc (right): https://chromiumcodereview.appspot.com/10834109/diff/10/chrome/browser/ui/webui/options2/preferences_browsertest.cc#newcode121 chrome/browser/ui/webui/options2/preferences_browsertest.cc:121: ASSERT_TRUE(prefs); There ...
8 years, 4 months ago (2012-08-07 18:35:55 UTC) #9
James Hawkins
SLGTM https://chromiumcodereview.appspot.com/10834109/diff/10/chrome/browser/ui/webui/options2/preferences_browsertest.cc File chrome/browser/ui/webui/options2/preferences_browsertest.cc (right): https://chromiumcodereview.appspot.com/10834109/diff/10/chrome/browser/ui/webui/options2/preferences_browsertest.cc#newcode121 chrome/browser/ui/webui/options2/preferences_browsertest.cc:121: ASSERT_TRUE(prefs); On 2012/08/07 18:35:56, bartfab wrote: > There ...
8 years, 4 months ago (2012-08-07 18:37:38 UTC) #10
bartfab (slow)
https://chromiumcodereview.appspot.com/10834109/diff/10/chrome/browser/ui/webui/options2/preferences_browsertest.cc File chrome/browser/ui/webui/options2/preferences_browsertest.cc (right): https://chromiumcodereview.appspot.com/10834109/diff/10/chrome/browser/ui/webui/options2/preferences_browsertest.cc#newcode121 chrome/browser/ui/webui/options2/preferences_browsertest.cc:121: ASSERT_TRUE(prefs); No problem, I replaced the ASSERT in the ...
8 years, 4 months ago (2012-08-07 18:41:21 UTC) #11
James Hawkins
SLGTM ship it!
8 years, 4 months ago (2012-08-07 18:42:55 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bartfab@chromium.org/10834109/8002
8 years, 4 months ago (2012-08-07 18:44:55 UTC) #13
commit-bot: I haz the power
Try job failure for 10834109-8002 (retry) on linux_chromeos for step "compile" (clobber build). It's a ...
8 years, 4 months ago (2012-08-07 19:17:17 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bartfab@chromium.org/10834109/7003
8 years, 4 months ago (2012-08-08 08:07:05 UTC) #15
commit-bot: I haz the power
8 years, 4 months ago (2012-08-08 09:35:50 UTC) #16
Change committed as 150527

Powered by Google App Engine
This is Rietveld 408576698