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

Issue 10808006: Move printing.* prefs from local state to profile (Closed)

Created:
8 years, 5 months ago by bartfab (slow)
Modified:
8 years, 5 months ago
CC:
chromium-reviews, Avi (use Gerrit), ajwong+watch_chromium.org, creis+watch_chromium.org, brettw-cc_chromium.org
Visibility:
Public.

Description

Move printing.* prefs from local state to profile This CL moves the printing.* prefs to the profile where they arguably should have resided in the first place. Unit tests are simplified by this change as the prefs can now be checked without verifying that local state exists. There is no user-visible change as the prefs are not exposed via the UI. BUG=137814 TEST=all unit_tests pass, all printing browser_tests pass Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=148531

Patch Set 1 #

Total comments: 2

Patch Set 2 : Retired PrintPreviewUnitTestBase class. #

Total comments: 5

Patch Set 3 : Rebased just in case as the CL is a few days old now plus I got my branches all mixed up a bit. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+90 lines, -185 lines) Patch
M chrome/browser/browser_process_impl.cc View 1 2 1 chunk +0 lines, -4 lines 0 comments Download
M chrome/browser/chrome_content_browser_client.cc View 1 2 2 chunks +3 lines, -7 lines 0 comments Download
M chrome/browser/prefs/browser_prefs.cc View 1 2 2 chunks +0 lines, -5 lines 0 comments Download
M chrome/browser/printing/print_job_manager.h View 4 chunks +0 lines, -23 lines 0 comments Download
M chrome/browser/printing/print_job_manager.cc View 4 chunks +0 lines, -20 lines 0 comments Download
M chrome/browser/printing/print_preview_tab_controller_unittest.cc View 1 3 chunks +11 lines, -2 lines 0 comments Download
M chrome/browser/printing/print_preview_unit_test_base.h View 1 1 chunk +0 lines, -26 lines 0 comments Download
M chrome/browser/printing/print_preview_unit_test_base.cc View 1 1 chunk +0 lines, -38 lines 0 comments Download
M chrome/browser/printing/print_view_manager.cc View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/printing/printing_message_filter.h View 3 chunks +5 lines, -1 line 0 comments Download
M chrome/browser/printing/printing_message_filter.cc View 4 chunks +9 lines, -3 lines 0 comments Download
M chrome/browser/profiles/profile_impl.cc View 1 2 1 chunk +12 lines, -0 lines 0 comments Download
M chrome/browser/profiles/profile_io_data.h View 1 2 2 chunks +5 lines, -0 lines 0 comments Download
M chrome/browser/profiles/profile_io_data.cc View 1 2 2 chunks +5 lines, -0 lines 0 comments Download
M chrome/browser/tab_contents/render_view_context_menu.cc View 2 chunks +4 lines, -9 lines 0 comments Download
M chrome/browser/ui/browser_command_controller.cc View 1 2 2 chunks +1 line, -1 line 0 comments Download
M chrome/browser/ui/browser_commands.cc View 1 2 3 chunks +9 lines, -17 lines 0 comments Download
M chrome/browser/ui/browser_ui_prefs.cc View 1 chunk +0 lines, -7 lines 0 comments Download
M chrome/browser/ui/webui/chrome_web_ui_controller_factory.cc View 1 2 2 chunks +1 line, -4 lines 0 comments Download
M chrome/browser/ui/webui/print_preview/print_preview_handler_unittest.cc View 1 5 chunks +8 lines, -4 lines 0 comments Download
M chrome/browser/ui/webui/print_preview/print_preview_ui_unittest.cc View 1 2 chunks +7 lines, -3 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/common/pref_names.h View 1 2 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/common/pref_names.cc View 1 2 2 chunks +6 lines, -6 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
bartfab (slow)
Hi everyone Could you please review this CL? It touches a lot of files but ...
8 years, 5 months ago (2012-07-18 09:58:46 UTC) #1
Mattias Nissler (ping if slow)
Nice change. LGTM from the policy and prefs side, but please get approval from people ...
8 years, 5 months ago (2012-07-18 10:11:53 UTC) #2
willchan no longer on Chromium
chrome/browser/profiles/ LGTM
8 years, 5 months ago (2012-07-18 13:54:40 UTC) #3
bartfab (slow)
https://chromiumcodereview.appspot.com/10808006/diff/1/chrome/browser/printing/print_preview_unit_test_base.cc File chrome/browser/printing/print_preview_unit_test_base.cc (right): https://chromiumcodereview.appspot.com/10808006/diff/1/chrome/browser/printing/print_preview_unit_test_base.cc#newcode19 chrome/browser/printing/print_preview_unit_test_base.cc:19: profile()->GetPrefs()->SetBoolean(prefs::kPrintPreviewDisabled, false); I retired the class. Done.
8 years, 5 months ago (2012-07-18 14:01:24 UTC) #4
sky
https://chromiumcodereview.appspot.com/10808006/diff/6001/chrome/chrome_tests.gypi File chrome/chrome_tests.gypi (left): https://chromiumcodereview.appspot.com/10808006/diff/6001/chrome/chrome_tests.gypi#oldcode1479 chrome/chrome_tests.gypi:1479: 'browser/printing/print_preview_unit_test_base.cc', It doesn't look like you removed these files ...
8 years, 5 months ago (2012-07-18 15:29:30 UTC) #5
Albert Bodenhamer
lgtm Thanks for taking this on. https://chromiumcodereview.appspot.com/10808006/diff/6001/chrome/browser/profiles/profile_impl.cc File chrome/browser/profiles/profile_impl.cc (right): https://chromiumcodereview.appspot.com/10808006/diff/6001/chrome/browser/profiles/profile_impl.cc#newcode225 chrome/browser/profiles/profile_impl.cc:225: prefs->RegisterBooleanPref(prefs::kPrintingEnabled, PrintingEnabled is ...
8 years, 5 months ago (2012-07-18 17:00:10 UTC) #6
bartfab (slow)
https://chromiumcodereview.appspot.com/10808006/diff/6001/chrome/browser/profiles/profile_impl.cc File chrome/browser/profiles/profile_impl.cc (right): https://chromiumcodereview.appspot.com/10808006/diff/6001/chrome/browser/profiles/profile_impl.cc#newcode225 chrome/browser/profiles/profile_impl.cc:225: prefs->RegisterBooleanPref(prefs::kPrintingEnabled, The pref exists as a vehicle for policy: ...
8 years, 5 months ago (2012-07-18 17:18:29 UTC) #7
Albert Bodenhamer
still lgtm https://chromiumcodereview.appspot.com/10808006/diff/6001/chrome/browser/profiles/profile_impl.cc File chrome/browser/profiles/profile_impl.cc (right): https://chromiumcodereview.appspot.com/10808006/diff/6001/chrome/browser/profiles/profile_impl.cc#newcode225 chrome/browser/profiles/profile_impl.cc:225: prefs->RegisterBooleanPref(prefs::kPrintingEnabled, Sounds good. On 2012/07/18 17:18:30, bartfab ...
8 years, 5 months ago (2012-07-18 17:23:20 UTC) #8
sky
LGTM - just make sure the files actually get deleted.
8 years, 5 months ago (2012-07-18 20:51:26 UTC) #9
bartfab (slow)
Hi Brett Friendly review ping. I have four owners now, one more to go.
8 years, 5 months ago (2012-07-19 18:14:48 UTC) #10
brettw
What part to do need me to review? When I see a CL with a ...
8 years, 5 months ago (2012-07-23 17:42:00 UTC) #11
bartfab (slow)
Brett: The specific file you own is: chrome/browser/tab_contents/render_view_context_menu.cc Plus you are listed as a reviewer ...
8 years, 5 months ago (2012-07-24 09:53:26 UTC) #12
brettw
above-mentioned files LGTM
8 years, 5 months ago (2012-07-25 23:31:19 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bartfab@chromium.org/10808006/13027
8 years, 5 months ago (2012-07-26 08:04:37 UTC) #14
commit-bot: I haz the power
8 years, 5 months ago (2012-07-26 11:52:11 UTC) #15
Change committed as 148531

Powered by Google App Engine
This is Rietveld 408576698