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

Issue 2161933003: Define printer configuration objects for Chrome OS. (Closed)

Created:
4 years, 5 months ago by skau
Modified:
4 years, 4 months ago
Reviewers:
Lei Zhang, stevenjb, xdai1, sky
CC:
chromium-reviews, oshima+watch_chromium.org, davemoore+watch_chromium.org, adlr, Lei Zhang, briannorris
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Define printer configuration objects for Chrome OS. Models will represent complete information required to setup a printer. They will be stored in local storage until sync can be implemented with the Chrome Sync team. BUG=616853 TEST=Unit tests for all object translation code. Committed: https://crrev.com/2b3975549595c92fa10c8a93b12d3aaefa2e9406 Cr-Commit-Position: refs/heads/master@{#409463}

Patch Set 1 #

Total comments: 2

Patch Set 2 : ready for review #

Total comments: 58

Patch Set 3 : fix #

Patch Set 4 : \ #

Total comments: 7

Patch Set 5 : comments #

Total comments: 4

Patch Set 6 : Done #

Total comments: 10

Patch Set 7 : mend #

Patch Set 8 : lint #

Total comments: 6

Patch Set 9 : polish #

Patch Set 10 : Export symbols. #

Patch Set 11 : export id constant #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+587 lines, -1 line) Patch
A chrome/browser/chromeos/printing/OWNERS View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
A chrome/browser/chromeos/printing/printer_pref_manager.h View 1 2 3 4 1 chunk +42 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/printing/printer_pref_manager.cc View 1 2 3 4 5 6 7 8 1 chunk +107 lines, -0 lines 0 comments Download
M chrome/browser/prefs/browser_prefs.cc View 1 2 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/chrome_browser_chromeos.gypi View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/common/pref_names.h View 1 2 3 4 5 6 7 8 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/common/pref_names.cc View 1 2 3 4 5 6 7 8 1 chunk +5 lines, -0 lines 0 comments Download
M chromeos/BUILD.gn View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M chromeos/chromeos.gyp View 1 2 3 4 5 6 7 8 9 2 chunks +5 lines, -0 lines 0 comments Download
A chromeos/printing/OWNERS View 1 2 3 4 5 1 chunk +3 lines, -0 lines 0 comments Download
A chromeos/printing/printer_configuration.h View 1 2 3 4 5 6 7 8 9 1 chunk +104 lines, -0 lines 0 comments Download
A chromeos/printing/printer_configuration.cc View 1 2 3 4 5 6 1 chunk +21 lines, -0 lines 1 comment Download
A chromeos/printing/printer_translator.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +34 lines, -0 lines 0 comments Download
A chromeos/printing/printer_translator.cc View 1 2 3 4 5 6 1 chunk +135 lines, -0 lines 0 comments Download
A chromeos/printing/printer_translator_unittest.cc View 1 2 3 4 5 6 7 1 chunk +121 lines, -0 lines 0 comments Download

Messages

Total messages: 50 (24 generated)
xdai1
Please see the question below. Thanks! https://codereview.chromium.org/2161933003/diff/1/chrome/browser/chromeos/printing/printer_configuration.h File chrome/browser/chromeos/printing/printer_configuration.h (right): https://codereview.chromium.org/2161933003/diff/1/chrome/browser/chromeos/printing/printer_configuration.h#newcode24 chrome/browser/chromeos/printing/printer_configuration.h:24: std::string id; Compared ...
4 years, 5 months ago (2016-07-19 19:09:43 UTC) #3
skau
I'm defining preference objects for Chrome OS. Please ping me if you need more information ...
4 years, 4 months ago (2016-07-28 20:07:15 UTC) #6
Lei Zhang
Oh hey, I'm not on the reviewers list. Then from the peanut gallery: - With ...
4 years, 4 months ago (2016-07-29 00:55:08 UTC) #7
stevenjb
I think this code can go in src/chromeos/printing. The only caveat is that such code ...
4 years, 4 months ago (2016-07-29 16:56:51 UTC) #8
stevenjb
Clarification: Everything except printer_pref_manager can go in src/chromeos. https://codereview.chromium.org/2161933003/diff/20001/chrome/browser/chromeos/printing/printer_pref_manager.cc File chrome/browser/chromeos/printing/printer_pref_manager.cc (right): https://codereview.chromium.org/2161933003/diff/20001/chrome/browser/chromeos/printing/printer_pref_manager.cc#newcode18 chrome/browser/chromeos/printing/printer_pref_manager.cc:18: #include ...
4 years, 4 months ago (2016-07-29 16:59:26 UTC) #10
skau
Thanks for the review. PTAL. https://codereview.chromium.org/2161933003/diff/20001/chrome/browser/chromeos/printing/printer_configuration.cc File chrome/browser/chromeos/printing/printer_configuration.cc (right): https://codereview.chromium.org/2161933003/diff/20001/chrome/browser/chromeos/printing/printer_configuration.cc#newcode5 chrome/browser/chromeos/printing/printer_configuration.cc:5: #include "chrome/browser/chromeos/printing/printer_configuration.h" On 2016/07/29 ...
4 years, 4 months ago (2016-08-01 19:37:21 UTC) #13
stevenjb
https://codereview.chromium.org/2161933003/diff/20001/chrome/browser/chromeos/printing/printer_configuration.h File chrome/browser/chromeos/printing/printer_configuration.h (right): https://codereview.chromium.org/2161933003/diff/20001/chrome/browser/chromeos/printing/printer_configuration.h#newcode30 chrome/browser/chromeos/printing/printer_configuration.h:30: Printer(); On 2016/08/01 19:37:19, skau wrote: > On 2016/07/29 ...
4 years, 4 months ago (2016-08-01 20:48:17 UTC) #14
skau
Thanks again. PTAL. https://codereview.chromium.org/2161933003/diff/20001/chrome/browser/chromeos/printing/printer_configuration.h File chrome/browser/chromeos/printing/printer_configuration.h (right): https://codereview.chromium.org/2161933003/diff/20001/chrome/browser/chromeos/printing/printer_configuration.h#newcode30 chrome/browser/chromeos/printing/printer_configuration.h:30: Printer(); On 2016/08/01 20:48:16, stevenjb wrote: ...
4 years, 4 months ago (2016-08-01 21:10:11 UTC) #15
stevenjb
lgtm with the suggested change. https://codereview.chromium.org/2161933003/diff/60001/chrome/browser/chromeos/printing/OWNERS File chrome/browser/chromeos/printing/OWNERS (right): https://codereview.chromium.org/2161933003/diff/60001/chrome/browser/chromeos/printing/OWNERS#newcode1 chrome/browser/chromeos/printing/OWNERS:1: file://chromeos/printing/OWNERS On 2016/08/01 21:10:10, ...
4 years, 4 months ago (2016-08-01 21:19:15 UTC) #16
skau
xdai@ can you lgtm if you don't have comments? sky@ can you take a look ...
4 years, 4 months ago (2016-08-01 22:17:00 UTC) #19
xdai1
chromeos/printing/printer_configuration.h && .cc lgtm! I thought I weren't a reviewer:)
4 years, 4 months ago (2016-08-01 22:22:41 UTC) #20
Lei Zhang
Try bots are red... https://codereview.chromium.org/2161933003/diff/100001/chromeos/printing/printer_translator.cc File chromeos/printing/printer_translator.cc (right): https://codereview.chromium.org/2161933003/diff/100001/chromeos/printing/printer_translator.cc#newcode47 chromeos/printing/printer_translator.cc:47: value->GetInteger(kVersionNumber, &version_number); Check return value ...
4 years, 4 months ago (2016-08-02 02:35:53 UTC) #24
sky
LGTM
4 years, 4 months ago (2016-08-02 17:00:16 UTC) #25
skau
Comments addressed. Thanks for all the reviews. https://codereview.chromium.org/2161933003/diff/100001/chromeos/printing/printer_translator.cc File chromeos/printing/printer_translator.cc (right): https://codereview.chromium.org/2161933003/diff/100001/chromeos/printing/printer_translator.cc#newcode47 chromeos/printing/printer_translator.cc:47: value->GetInteger(kVersionNumber, &version_number); ...
4 years, 4 months ago (2016-08-02 20:17:23 UTC) #28
Lei Zhang
lgtm https://codereview.chromium.org/2161933003/diff/140001/chrome/browser/chromeos/printing/printer_pref_manager.cc File chrome/browser/chromeos/printing/printer_pref_manager.cc (right): https://codereview.chromium.org/2161933003/diff/140001/chrome/browser/chromeos/printing/printer_pref_manager.cc#newcode60 chrome/browser/chromeos/printing/printer_pref_manager.cc:60: std::unique_ptr<base::Value>(std::move(printer_dictionary))); Do you need the "std::unique_ptr<base::Value>(" bit here? ...
4 years, 4 months ago (2016-08-02 20:52:41 UTC) #29
skau
https://codereview.chromium.org/2161933003/diff/140001/chrome/browser/chromeos/printing/printer_pref_manager.cc File chrome/browser/chromeos/printing/printer_pref_manager.cc (right): https://codereview.chromium.org/2161933003/diff/140001/chrome/browser/chromeos/printing/printer_pref_manager.cc#newcode60 chrome/browser/chromeos/printing/printer_pref_manager.cc:60: std::unique_ptr<base::Value>(std::move(printer_dictionary))); On 2016/08/02 20:52:41, Lei Zhang wrote: > Do ...
4 years, 4 months ago (2016-08-02 21:16:00 UTC) #32
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/2161933003/160001
4 years, 4 months ago (2016-08-02 21:16:17 UTC) #33
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_compile_dbg_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_compile_dbg_ng/builds/240217)
4 years, 4 months ago (2016-08-02 21:37:39 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/2161933003/180001
4 years, 4 months ago (2016-08-03 01:32:25 UTC) #38
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_compile_dbg_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_compile_dbg_ng/builds/240411)
4 years, 4 months ago (2016-08-03 02:02:44 UTC) #40
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/2161933003/200001
4 years, 4 months ago (2016-08-03 04:27:40 UTC) #43
commit-bot: I haz the power
Committed patchset #11 (id:200001)
4 years, 4 months ago (2016-08-03 05:33:19 UTC) #45
commit-bot: I haz the power
Patchset 11 (id:??) landed as https://crrev.com/2b3975549595c92fa10c8a93b12d3aaefa2e9406 Cr-Commit-Position: refs/heads/master@{#409463}
4 years, 4 months ago (2016-08-03 05:34:42 UTC) #47
aboxhall
A revert of this CL (patchset #11 id:200001) has been created in https://codereview.chromium.org/2207053002/ by aboxhall@chromium.org. ...
4 years, 4 months ago (2016-08-03 16:21:25 UTC) #48
Lei Zhang
https://codereview.chromium.org/2161933003/diff/200001/chromeos/printing/printer_configuration.cc File chromeos/printing/printer_configuration.cc (right): https://codereview.chromium.org/2161933003/diff/200001/chromeos/printing/printer_configuration.cc#newcode18 chromeos/printing/printer_configuration.cc:18: ppd_ = *(ppd.release()); Ya, probably a bad release() here. ...
4 years, 4 months ago (2016-08-03 16:28:06 UTC) #49
skau
4 years, 4 months ago (2016-08-03 16:58:26 UTC) #50
Message was sent while issue was closed.
On 2016/08/03 16:28:06, Lei Zhang wrote:
>
https://codereview.chromium.org/2161933003/diff/200001/chromeos/printing/prin...
> File chromeos/printing/printer_configuration.cc (right):
> 
>
https://codereview.chromium.org/2161933003/diff/200001/chromeos/printing/prin...
> chromeos/printing/printer_configuration.cc:18: ppd_ = *(ppd.release());
> Ya, probably a bad release() here. Should be a .get() instead, and let |ppd|
> hold on to the raw pointer.

Yep.  release is wrong.  I thought it would get moved since it was an rvalue but
that doesn't make much sense.

Powered by Google App Engine
This is Rietveld 408576698