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

Issue 2858353004: Track printer installations for each configuration. (Closed)

Created:
3 years, 7 months ago by skau
Modified:
3 years, 7 months ago
Reviewers:
Lei Zhang, Carlson
CC:
chromium-reviews, davemoore+watch_chromium.org, dbeam+watch-settings_chromium.org, michaelpg+watch-md-settings_chromium.org, oshima+watch_chromium.org, stevenjb+watch-md-settings_chromium.org, sync-reviews_chromium.org, xdai1
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Track printer installations for each configuration. Track which printers have been configured in the system by tracking the timestamp for their most recently installed configuration. This prevents reinstalling printers which can cause print queues to restart. BUG=713916 Review-Url: https://codereview.chromium.org/2858353004 Cr-Commit-Position: refs/heads/master@{#470686} Committed: https://chromium.googlesource.com/chromium/src/+/d571f3812f6e6031ce0da38c6a667cbabfd31e36

Patch Set 1 #

Patch Set 2 : default argument #

Total comments: 11

Patch Set 3 : address comments #

Patch Set 4 : fix cros unittest #

Patch Set 5 : swaps #

Total comments: 22

Patch Set 6 : guard against duplicate entries #

Patch Set 7 : address comments #

Total comments: 4

Patch Set 8 : address comments #

Patch Set 9 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+191 lines, -86 lines) Patch
M chrome/browser/chromeos/printing/printers_manager.h View 1 2 3 4 5 6 7 3 chunks +14 lines, -4 lines 0 comments Download
M chrome/browser/chromeos/printing/printers_manager.cc View 1 2 3 4 5 6 4 chunks +46 lines, -12 lines 0 comments Download
M chrome/browser/chromeos/printing/printers_manager_unittest.cc View 1 2 3 4 5 6 7 2 chunks +20 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/printing/specifics_translation.cc View 1 2 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/chromeos/printing/specifics_translation_unittest.cc View 1 2 3 4 5 6 7 4 chunks +4 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/print_preview/printer_backend_proxy_chromeos.cc View 1 2 chunks +48 lines, -38 lines 0 comments Download
M chrome/browser/ui/webui/settings/chromeos/cups_printers_handler.cc View 1 2 3 4 5 6 7 8 1 chunk +5 lines, -3 lines 0 comments Download
M chromeos/printing/printer_configuration.h View 1 2 3 4 5 6 4 chunks +10 lines, -2 lines 0 comments Download
M chromeos/printing/printer_configuration.cc View 1 2 3 4 5 6 1 chunk +2 lines, -1 line 0 comments Download
M chromeos/printing/printer_translator.h View 1 2 2 chunks +3 lines, -1 line 0 comments Download
M chromeos/printing/printer_translator.cc View 1 2 3 4 5 6 7 4 chunks +18 lines, -17 lines 0 comments Download
M chromeos/printing/printer_translator_unittest.cc View 1 2 3 4 5 6 7 9 chunks +18 lines, -7 lines 0 comments Download

Messages

Total messages: 41 (20 generated)
skau
3 years, 7 months ago (2017-05-05 23:47:32 UTC) #2
Carlson
https://codereview.chromium.org/2858353004/diff/20001/chrome/browser/chromeos/printing/printers_manager.cc File chrome/browser/chromeos/printing/printers_manager.cc (right): https://codereview.chromium.org/2858353004/diff/20001/chrome/browser/chromeos/printing/printers_manager.cc#newcode203 chrome/browser/chromeos/printing/printers_manager.cc:203: recommended_printer_ids_.push_back(id); Does this mean we're happy to push the ...
3 years, 7 months ago (2017-05-05 23:59:16 UTC) #3
skau
Comments addressed. PTAL. https://codereview.chromium.org/2858353004/diff/20001/chrome/browser/chromeos/printing/printers_manager.cc File chrome/browser/chromeos/printing/printers_manager.cc (right): https://codereview.chromium.org/2858353004/diff/20001/chrome/browser/chromeos/printing/printers_manager.cc#newcode203 chrome/browser/chromeos/printing/printers_manager.cc:203: recommended_printer_ids_.push_back(id); On 2017/05/05 23:59:16, Carlson wrote: ...
3 years, 7 months ago (2017-05-08 18:38:02 UTC) #4
skau
dpapad@: OWNER of chrome/browser/ui/webui/* xdai@: fyi
3 years, 7 months ago (2017-05-08 18:45:48 UTC) #8
Carlson
https://codereview.chromium.org/2858353004/diff/20001/chrome/browser/chromeos/printing/printers_manager.cc File chrome/browser/chromeos/printing/printers_manager.cc (right): https://codereview.chromium.org/2858353004/diff/20001/chrome/browser/chromeos/printing/printers_manager.cc#newcode203 chrome/browser/chromeos/printing/printers_manager.cc:203: recommended_printer_ids_.push_back(id); On 2017/05/08 18:38:02, skau wrote: > On 2017/05/05 ...
3 years, 7 months ago (2017-05-08 18:49:26 UTC) #9
skau
On 2017/05/08 18:49:26, Carlson wrote: > https://codereview.chromium.org/2858353004/diff/20001/chrome/browser/chromeos/printing/printers_manager.cc > File chrome/browser/chromeos/printing/printers_manager.cc (right): > > https://codereview.chromium.org/2858353004/diff/20001/chrome/browser/chromeos/printing/printers_manager.cc#newcode203 > ...
3 years, 7 months ago (2017-05-08 20:11:30 UTC) #12
dpapad
@thestig: Could you take a look at the changes in chrome/browser/ui/webui/print_preview/printer_backend_proxy_chromeos.cc?
3 years, 7 months ago (2017-05-08 20:24:08 UTC) #14
Carlson
https://codereview.chromium.org/2858353004/diff/80001/chrome/browser/chromeos/printing/printers_manager.cc File chrome/browser/chromeos/printing/printers_manager.cc (right): https://codereview.chromium.org/2858353004/diff/80001/chrome/browser/chromeos/printing/printers_manager.cc#newcode208 chrome/browser/chromeos/printing/printers_manager.cc:208: if (old != recommended_printers_.end()) { Generally looks fine, but ...
3 years, 7 months ago (2017-05-08 21:01:17 UTC) #15
skau
Added a guard for duplicated printer ids. https://codereview.chromium.org/2858353004/diff/80001/chrome/browser/chromeos/printing/printers_manager.cc File chrome/browser/chromeos/printing/printers_manager.cc (right): https://codereview.chromium.org/2858353004/diff/80001/chrome/browser/chromeos/printing/printers_manager.cc#newcode208 chrome/browser/chromeos/printing/printers_manager.cc:208: if (old ...
3 years, 7 months ago (2017-05-08 21:19:25 UTC) #16
Carlson
lgtm
3 years, 7 months ago (2017-05-08 21:31:00 UTC) #17
Lei Zhang
https://codereview.chromium.org/2858353004/diff/80001/chrome/browser/chromeos/printing/printers_manager.h File chrome/browser/chromeos/printing/printers_manager.h (right): https://codereview.chromium.org/2858353004/diff/80001/chrome/browser/chromeos/printing/printers_manager.h#newcode58 chrome/browser/chromeos/printing/printers_manager.h:58: // Adds or updates a printer. Printers are identified ...
3 years, 7 months ago (2017-05-08 21:42:48 UTC) #20
skau
Addressed comments. Some replies, some code changes. https://codereview.chromium.org/2858353004/diff/80001/chrome/browser/chromeos/printing/printers_manager.h File chrome/browser/chromeos/printing/printers_manager.h (right): https://codereview.chromium.org/2858353004/diff/80001/chrome/browser/chromeos/printing/printers_manager.h#newcode58 chrome/browser/chromeos/printing/printers_manager.h:58: // Adds ...
3 years, 7 months ago (2017-05-09 00:52:01 UTC) #23
Lei Zhang
Just want to iron out the Java time thing, otherwise looks good. https://codereview.chromium.org/2858353004/diff/80001/chrome/browser/chromeos/printing/printers_manager.h File chrome/browser/chromeos/printing/printers_manager.h ...
3 years, 7 months ago (2017-05-09 01:14:40 UTC) #24
skau
Comments addressed. IRT java time, I'm going to change the representation in the proto in ...
3 years, 7 months ago (2017-05-09 19:39:27 UTC) #25
Lei Zhang
lgtm
3 years, 7 months ago (2017-05-09 20:23:44 UTC) #26
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/2858353004/160001
3 years, 7 months ago (2017-05-09 20:25:35 UTC) #29
commit-bot: I haz the power
Try jobs failed on following builders: chromeos_amd64-generic_chromium_compile_only_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromeos_amd64-generic_chromium_compile_only_ng/builds/335503) linux_chromium_chromeos_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, ...
3 years, 7 months ago (2017-05-09 22:35:44 UTC) #31
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/2858353004/160001
3 years, 7 months ago (2017-05-09 22:50:27 UTC) #33
commit-bot: I haz the power
Try jobs failed on following builders: chromeos_amd64-generic_chromium_compile_only_ng on master.tryserver.chromium.linux (JOB_TIMED_OUT, build has not started yet; ...
3 years, 7 months ago (2017-05-10 00:53:13 UTC) #35
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/2858353004/160001
3 years, 7 months ago (2017-05-10 18:43:46 UTC) #38
commit-bot: I haz the power
3 years, 7 months ago (2017-05-10 20:28:09 UTC) #41
Message was sent while issue was closed.
Committed patchset #9 (id:160001) as
https://chromium.googlesource.com/chromium/src/+/d571f3812f6e6031ce0da38c6a66...

Powered by Google App Engine
This is Rietveld 408576698