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

Issue 2956173002: Introduce the field make_and_model for synced printers. (Closed)

Created:
3 years, 5 months ago by skau
Modified:
3 years, 5 months ago
Reviewers:
Carlson, skym
CC:
chromium-reviews, sync-reviews_chromium.org, oshima+watch_chromium.org, davemoore+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Introduce the field make_and_model for synced printers. Parsing manufacturer and model consistently is difficult. We don't need the separate fields so store it as a single string. This CL deprecates the old fields in the proto and ensures that the new field is populated. Future CLs will migrate old PrinterSpecifics objects and remove usages of manufacturer() and model() on the Printer object. BUG=730242 Review-Url: https://codereview.chromium.org/2956173002 Cr-Commit-Position: refs/heads/master@{#483209} Committed: https://chromium.googlesource.com/chromium/src/+/6609d04f50475d06e8c34f2d1f293d07c2a92059

Patch Set 1 #

Patch Set 2 : add back old fields #

Total comments: 8

Patch Set 3 : address comments. Add test #

Total comments: 2

Patch Set 4 : done #

Unified diffs Side-by-side diffs Delta from patch set Stats (+153 lines, -12 lines) Patch
M chrome/browser/chromeos/printing/specifics_translation.cc View 1 2 4 chunks +19 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/printing/specifics_translation_unittest.cc View 1 2 3 11 chunks +64 lines, -8 lines 0 comments Download
M chromeos/printing/printer_configuration.h View 1 2 2 chunks +17 lines, -0 lines 0 comments Download
M chromeos/printing/printer_translator.cc View 1 2 3 1 chunk +6 lines, -0 lines 0 comments Download
M chromeos/printing/printer_translator_unittest.cc View 1 2 3 chunks +37 lines, -2 lines 0 comments Download
M components/sync/protocol/printer_specifics.proto View 1 2 3 2 chunks +9 lines, -2 lines 0 comments Download
M components/sync/protocol/proto_visitors.h View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 19 (11 generated)
skau
Please review. I'm going to start the migration with a dark launch. skym@: //components/sync/* justincarlson@: ...
3 years, 5 months ago (2017-06-28 01:36:24 UTC) #2
Carlson
lgtm https://codereview.chromium.org/2956173002/diff/20001/chrome/browser/chromeos/printing/specifics_translation.cc File chrome/browser/chromeos/printing/specifics_translation.cc (right): https://codereview.chromium.org/2956173002/diff/20001/chrome/browser/chromeos/printing/specifics_translation.cc#newcode54 chrome/browser/chromeos/printing/specifics_translation.cc:54: std::string MakeAndModel(base::StringPiece make, base::StringPiece model) { Function comment. ...
3 years, 5 months ago (2017-06-28 17:38:36 UTC) #9
skau
PTAL https://codereview.chromium.org/2956173002/diff/20001/chrome/browser/chromeos/printing/specifics_translation.cc File chrome/browser/chromeos/printing/specifics_translation.cc (right): https://codereview.chromium.org/2956173002/diff/20001/chrome/browser/chromeos/printing/specifics_translation.cc#newcode54 chrome/browser/chromeos/printing/specifics_translation.cc:54: std::string MakeAndModel(base::StringPiece make, base::StringPiece model) { On 2017/06/28 ...
3 years, 5 months ago (2017-06-28 21:25:35 UTC) #10
skym
sync lgtm https://codereview.chromium.org/2956173002/diff/40001/components/sync/protocol/printer_specifics.proto File components/sync/protocol/printer_specifics.proto (right): https://codereview.chromium.org/2956173002/diff/40001/components/sync/protocol/printer_specifics.proto#newcode70 components/sync/protocol/printer_specifics.proto:70: // for this is '<Make> <Model>'. This ...
3 years, 5 months ago (2017-06-28 22:14:33 UTC) #11
Carlson
lgtm https://codereview.chromium.org/2956173002/diff/20001/chromeos/printing/printer_translator.cc File chromeos/printing/printer_translator.cc (right): https://codereview.chromium.org/2956173002/diff/20001/chromeos/printing/printer_translator.cc#newcode71 chromeos/printing/printer_translator.cc:71: make_and_model.append(model); On 2017/06/28 21:25:35, skau wrote: > On ...
3 years, 5 months ago (2017-06-28 22:22:04 UTC) #12
skau
Thanks for the reviews. https://codereview.chromium.org/2956173002/diff/20001/chromeos/printing/printer_translator.cc File chromeos/printing/printer_translator.cc (right): https://codereview.chromium.org/2956173002/diff/20001/chromeos/printing/printer_translator.cc#newcode71 chromeos/printing/printer_translator.cc:71: make_and_model.append(model); On 2017/06/28 22:22:04, Carlson ...
3 years, 5 months ago (2017-06-28 22:41:06 UTC) #13
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/2956173002/60001
3 years, 5 months ago (2017-06-28 22:41:50 UTC) #16
commit-bot: I haz the power
3 years, 5 months ago (2017-06-29 00:09:57 UTC) #19
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/6609d04f50475d06e8c34f2d1f29...

Powered by Google App Engine
This is Rietveld 408576698