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

Issue 2351023002: [CUPS] Add a "Manage..." button in the local destinations section of Print Preview Dialog on Chrome… (Closed)

Created:
4 years, 3 months ago by xdai1
Modified:
4 years, 3 months ago
Reviewers:
Lei Zhang, Dan Beam, dpapad
CC:
arv+watch_chromium.org, chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[CUPS] Add a "Manage..." button in the local destinations section of Print Preview Dialog on Chrome OS. Activating the button should take the user to the Printer Management Settings subpage (chrome://md-settings/cupsPrinters). BUG=625374, 626752 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation Committed: https://crrev.com/3a881a0380881933aa502ede02c4597088e8121d Cr-Commit-Position: refs/heads/master@{#420522}

Patch Set 1 : [CUPS] Add a "Manage..." button in the local destinations section of Print Preview Dialog on Chrome… #

Total comments: 5

Patch Set 2 : Address dpapad@'s comments. #

Patch Set 3 : Address dbeam@'s comments. #

Total comments: 11

Patch Set 4 : Address comments. Rebase #

Patch Set 5 : Address dpapad@'s comments. #

Total comments: 8

Patch Set 6 : Address comments. #

Patch Set 7 : Address dpapad@'s comments. #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+29 lines, -1 line) Patch
M chrome/browser/resources/print_preview/search/destination_search.js View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/print_preview/print_preview_handler.cc View 1 2 3 4 5 6 2 chunks +9 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/print_preview/print_preview_ui.cc View 1 2 3 4 5 6 2 chunks +16 lines, -0 lines 0 comments Download
M chrome/common/url_constants.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/url_constants.cc View 1 2 3 1 chunk +1 line, -0 lines 3 comments Download

Messages

Total messages: 44 (19 generated)
xdai1
dpapad@, could you help review this CL please? Thanks!
4 years, 3 months ago (2016-09-19 21:58:17 UTC) #4
dpapad
https://codereview.chromium.org/2351023002/diff/20001/chrome/browser/resources/print_preview/search/destination_search.js File chrome/browser/resources/print_preview/search/destination_search.js (right): https://codereview.chromium.org/2351023002/diff/20001/chrome/browser/resources/print_preview/search/destination_search.js#newcode691 chrome/browser/resources/print_preview/search/destination_search.js:691: if (cr.isChromeOS) { Is this the right place to ...
4 years, 3 months ago (2016-09-19 22:21:19 UTC) #9
xdai1
dpapad@, thanks for your comments! Please see my inline questions below. https://codereview.chromium.org/2351023002/diff/20001/chrome/browser/resources/print_preview/search/destination_search.js File chrome/browser/resources/print_preview/search/destination_search.js (right): ...
4 years, 3 months ago (2016-09-19 22:53:40 UTC) #10
dpapad
+dbeam https://codereview.chromium.org/2351023002/diff/20001/chrome/browser/resources/print_preview/search/destination_search.js File chrome/browser/resources/print_preview/search/destination_search.js (right): https://codereview.chromium.org/2351023002/diff/20001/chrome/browser/resources/print_preview/search/destination_search.js#newcode691 chrome/browser/resources/print_preview/search/destination_search.js:691: if (cr.isChromeOS) { On 2016/09/19 at 22:53:40, xdai1 ...
4 years, 3 months ago (2016-09-20 00:03:23 UTC) #11
xdai1
dpapad@, I've addressed your comments. Please take another look. In the meantime, I'll wait for ...
4 years, 3 months ago (2016-09-20 17:31:29 UTC) #12
Dan Beam
On 2016/09/20 00:03:23, dpapad wrote: > +dbeam > > https://codereview.chromium.org/2351023002/diff/20001/chrome/browser/resources/print_preview/search/destination_search.js > File chrome/browser/resources/print_preview/search/destination_search.js > (right): ...
4 years, 3 months ago (2016-09-20 17:58:50 UTC) #13
xdai1
dpapad@, dbeam@, please take another look, thanks!
4 years, 3 months ago (2016-09-20 23:39:51 UTC) #15
dpapad
https://codereview.chromium.org/2351023002/diff/60001/chrome/browser/resources/print_preview/search/destination_search.js File chrome/browser/resources/print_preview/search/destination_search.js (right): https://codereview.chromium.org/2351023002/diff/60001/chrome/browser/resources/print_preview/search/destination_search.js#newcode101 chrome/browser/resources/print_preview/search/destination_search.js:101: cr.isChromeOS && loadTimeData.getBoolean('showLocalManageButton') ? showLocalManageButton will be falsy if ...
4 years, 3 months ago (2016-09-21 00:39:02 UTC) #16
Dan Beam
https://codereview.chromium.org/2351023002/diff/60001/chrome/browser/resources/print_preview/print_preview.js File chrome/browser/resources/print_preview/print_preview.js (right): https://codereview.chromium.org/2351023002/diff/60001/chrome/browser/resources/print_preview/print_preview.js#newcode966 chrome/browser/resources/print_preview/print_preview.js:966: if (cr.isChromeOS && loadTimeData.getBoolean('showLocalManageButton')) { getBoolean() fails if the ...
4 years, 3 months ago (2016-09-21 02:08:40 UTC) #17
xdai1
dpapad@, dbeam@, I've addressed your comments. Please take another look, thanks! https://codereview.chromium.org/2351023002/diff/60001/chrome/browser/resources/print_preview/print_preview.js File chrome/browser/resources/print_preview/print_preview.js (right): ...
4 years, 3 months ago (2016-09-21 18:03:21 UTC) #18
dpapad
LGTM, with nit. https://codereview.chromium.org/2351023002/diff/60001/chrome/browser/resources/print_preview/print_preview.js File chrome/browser/resources/print_preview/print_preview.js (right): https://codereview.chromium.org/2351023002/diff/60001/chrome/browser/resources/print_preview/print_preview.js#newcode966 chrome/browser/resources/print_preview/print_preview.js:966: if (cr.isChromeOS && loadTimeData.getBoolean('showLocalManageButton')) { On ...
4 years, 3 months ago (2016-09-21 18:13:48 UTC) #21
xdai1
Comments addressed. Please take another look, thanks! https://codereview.chromium.org/2351023002/diff/60001/chrome/browser/resources/print_preview/print_preview.js File chrome/browser/resources/print_preview/print_preview.js (right): https://codereview.chromium.org/2351023002/diff/60001/chrome/browser/resources/print_preview/print_preview.js#newcode966 chrome/browser/resources/print_preview/print_preview.js:966: if (cr.isChromeOS ...
4 years, 3 months ago (2016-09-21 18:36:14 UTC) #22
Dan Beam
https://codereview.chromium.org/2351023002/diff/100001/chrome/browser/ui/webui/print_preview/print_preview_ui.cc File chrome/browser/ui/webui/print_preview/print_preview_ui.cc (right): https://codereview.chromium.org/2351023002/diff/100001/chrome/browser/ui/webui/print_preview/print_preview_ui.cc#newcode412 chrome/browser/ui/webui/print_preview/print_preview_ui.cc:412: source->AddBoolean("showLocalManageButton", true); i'm confused. why should this be true ...
4 years, 3 months ago (2016-09-21 19:12:02 UTC) #23
xdai1
See the inline comment. https://codereview.chromium.org/2351023002/diff/100001/chrome/browser/ui/webui/print_preview/print_preview_ui.cc File chrome/browser/ui/webui/print_preview/print_preview_ui.cc (right): https://codereview.chromium.org/2351023002/diff/100001/chrome/browser/ui/webui/print_preview/print_preview_ui.cc#newcode412 chrome/browser/ui/webui/print_preview/print_preview_ui.cc:412: source->AddBoolean("showLocalManageButton", true); On 2016/09/21 19:12:02, ...
4 years, 3 months ago (2016-09-21 19:56:24 UTC) #24
Dan Beam
lgtm w/suggestion and questions Q: is CUPS printing ever going to be supported outside of ...
4 years, 3 months ago (2016-09-21 20:56:25 UTC) #25
dpapad
https://codereview.chromium.org/2351023002/diff/100001/chrome/browser/resources/print_preview/print_preview.js File chrome/browser/resources/print_preview/print_preview.js (right): https://codereview.chromium.org/2351023002/diff/100001/chrome/browser/resources/print_preview/print_preview.js#newcode966 chrome/browser/resources/print_preview/print_preview.js:966: if (cr.isChromeOS && loadTimeData.getBoolean('showLocalManageButton')) { I think the confusing ...
4 years, 3 months ago (2016-09-21 20:58:23 UTC) #26
xdai1
Please take another look, thanks again! https://codereview.chromium.org/2351023002/diff/100001/chrome/browser/resources/print_preview/print_preview.js File chrome/browser/resources/print_preview/print_preview.js (right): https://codereview.chromium.org/2351023002/diff/100001/chrome/browser/resources/print_preview/print_preview.js#newcode966 chrome/browser/resources/print_preview/print_preview.js:966: if (cr.isChromeOS && ...
4 years, 3 months ago (2016-09-21 23:38:53 UTC) #27
dpapad
https://codereview.chromium.org/2351023002/diff/100001/chrome/browser/resources/print_preview/print_preview.js File chrome/browser/resources/print_preview/print_preview.js (right): https://codereview.chromium.org/2351023002/diff/100001/chrome/browser/resources/print_preview/print_preview.js#newcode966 chrome/browser/resources/print_preview/print_preview.js:966: if (cr.isChromeOS && loadTimeData.getBoolean('showLocalManageButton')) { > You're right that ...
4 years, 3 months ago (2016-09-22 00:18:15 UTC) #28
xdai1
dpapad@, modified as you suggested. Thanks for the review!
4 years, 3 months ago (2016-09-22 18:57:02 UTC) #29
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/2351023002/140001
4 years, 3 months ago (2016-09-23 00:00:57 UTC) #36
commit-bot: I haz the power
Committed patchset #7 (id:140001)
4 years, 3 months ago (2016-09-23 01:05:44 UTC) #38
commit-bot: I haz the power
Patchset 7 (id:??) landed as https://crrev.com/3a881a0380881933aa502ede02c4597088e8121d Cr-Commit-Position: refs/heads/master@{#420522}
4 years, 3 months ago (2016-09-23 01:08:23 UTC) #40
Lei Zhang
https://codereview.chromium.org/2351023002/diff/140001/chrome/common/url_constants.cc File chrome/common/url_constants.cc (right): https://codereview.chromium.org/2351023002/diff/140001/chrome/common/url_constants.cc#newcode129 chrome/common/url_constants.cc:129: const char kChromeUIMdCupsSettingsURL[] = "chrome://settings/cupsPrinters"; Most of the other ...
4 years, 3 months ago (2016-09-23 01:39:29 UTC) #42
Dan Beam
https://codereview.chromium.org/2351023002/diff/140001/chrome/common/url_constants.cc File chrome/common/url_constants.cc (right): https://codereview.chromium.org/2351023002/diff/140001/chrome/common/url_constants.cc#newcode129 chrome/common/url_constants.cc:129: const char kChromeUIMdCupsSettingsURL[] = "chrome://settings/cupsPrinters"; On 2016/09/23 01:39:28, Lei ...
4 years, 3 months ago (2016-09-23 01:58:22 UTC) #43
Lei Zhang
4 years, 3 months ago (2016-09-23 04:43:31 UTC) #44
Message was sent while issue was closed.
https://codereview.chromium.org/2351023002/diff/140001/chrome/common/url_cons...
File chrome/common/url_constants.cc (right):

https://codereview.chromium.org/2351023002/diff/140001/chrome/common/url_cons...
chrome/common/url_constants.cc:129: const char kChromeUIMdCupsSettingsURL[] =
"chrome://settings/cupsPrinters";
On 2016/09/23 01:58:21, Dan Beam wrote:
> On 2016/09/23 01:39:28, Lei Zhang wrote:
> > Most of the other options are foo-bar, not fooBar.
> 
> what? you mean in the ://host-name or in the /pathName?  because those are
> different.
> 
> this URL already exists, and it looks like it follows the rest of these
> 
> chrome://settings/clearBrowserData
> chrome://settings/contentExceptions
> chrome://settings/createProfile
> chrome://settings/importData
> chrome://settings/syncSetup
> chrome://settings/resetProfileSettings

Ok, n/m. It's just that everything within +/- 10 lines is foo-bar.

Powered by Google App Engine
This is Rietveld 408576698