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

Issue 2646823002: D2MIOS: Add plumbing to query verified number and send SMS from growth server. (Closed)

Created:
3 years, 11 months ago by justincohen
Modified:
3 years, 10 months ago
Reviewers:
msramek, mrefaat, brettw, rkaplow
CC:
chromium-reviews, asvitkine+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

D2MIOS: Add plumbing to query verified number and send SMS from growth server. - Introduce SMSService class which communicates with the Google growth server. - Add API to query the logged in users verified phone number and send promotional desktop-to-mobile text message to SMS number. A design doc is available here: https://docs.google.com/document/d/1ah0VqnWcyvuyKZuBLASHvilyVl-GXom-LeDKmekILVQ/view BUG=676655 Review-Url: https://codereview.chromium.org/2646823002 Cr-Commit-Position: refs/heads/master@{#447561} Committed: https://chromium.googlesource.com/chromium/src/+/6b2002254c376c156bd5f7d49a6de9d352083dde

Patch Set 1 #

Total comments: 13

Patch Set 2 : Added comments #

Patch Set 3 : Add unit tests #

Total comments: 8

Patch Set 4 : Address comments #

Patch Set 5 : Address comments #

Patch Set 6 : Fix linux builds #

Patch Set 7 : Fix android builds #

Total comments: 3

Patch Set 8 : Correct historgram enum #

Total comments: 2

Patch Set 9 : Change to const ref std::string #

Unified diffs Side-by-side diffs Delta from patch set Stats (+731 lines, -0 lines) Patch
M chrome/browser/profiles/chrome_browser_main_extra_parts_profiles.cc View 1 2 3 4 5 6 2 chunks +4 lines, -0 lines 0 comments Download
M chrome/browser/ui/BUILD.gn View 1 2 3 4 5 6 7 8 1 chunk +4 lines, -0 lines 0 comments Download
A chrome/browser/ui/desktop_ios_promotion/sms_service.h View 1 2 3 4 5 6 7 8 1 chunk +109 lines, -0 lines 0 comments Download
A chrome/browser/ui/desktop_ios_promotion/sms_service.cc View 1 2 3 4 5 6 7 8 1 chunk +314 lines, -0 lines 0 comments Download
A chrome/browser/ui/desktop_ios_promotion/sms_service_factory.h View 1 2 3 1 chunk +37 lines, -0 lines 0 comments Download
A chrome/browser/ui/desktop_ios_promotion/sms_service_factory.cc View 1 2 3 1 chunk +45 lines, -0 lines 0 comments Download
A chrome/browser/ui/desktop_ios_promotion/sms_service_unittest.cc View 1 2 3 4 5 1 chunk +199 lines, -0 lines 0 comments Download
M chrome/test/BUILD.gn View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 6 7 8 1 chunk +18 lines, -0 lines 0 comments Download

Messages

Total messages: 43 (24 generated)
justincohen
PTAL! This class is modeled heavily on the WebHistoryService implementation for Google API communication.
3 years, 11 months ago (2017-01-19 19:04:51 UTC) #3
justincohen
msramek@ would you be able to review here given your work on WebHistoryService, which this ...
3 years, 11 months ago (2017-01-20 20:39:39 UTC) #5
msramek
Hi! I think that basing this on WebHistoryService makes sense, but I would absolutely not ...
3 years, 11 months ago (2017-01-23 21:13:57 UTC) #6
justincohen
Here's the internal PRD: https://docs.google.com/document/d/1IsjYNTHf-KnvTMQz1NJ4nub9C2FRBWud7S75mLIZPyg/view I addressed the small stuff, and will work on the ...
3 years, 10 months ago (2017-01-25 22:52:38 UTC) #7
justincohen
Add unit tests. https://codereview.chromium.org/2646823002/diff/1/chrome/browser/ui/desktop_ios_promotion/sms_service.cc File chrome/browser/ui/desktop_ios_promotion/sms_service.cc (right): https://codereview.chromium.org/2646823002/diff/1/chrome/browser/ui/desktop_ios_promotion/sms_service.cc#newcode285 chrome/browser/ui/desktop_ios_promotion/sms_service.cc:285: if (value.get() && value.get()->IsType(base::Value::Type::DICTIONARY)) { On ...
3 years, 10 months ago (2017-01-27 05:12:01 UTC) #8
msramek
LGTM with comments. Thanks for adding the test (although it doesn't seem to compile now ...
3 years, 10 months ago (2017-01-27 16:38:58 UTC) #9
justincohen
thanks for the review. over to sky@ for OWNERS and rkaplow@ for metrics. PTAL! https://codereview.chromium.org/2646823002/diff/40001/chrome/browser/ui/desktop_ios_promotion/sms_service.h ...
3 years, 10 months ago (2017-01-27 23:06:46 UTC) #11
sky
You've got both brett and myself as reviewer. You don't need us both. I'm removing ...
3 years, 10 months ago (2017-01-27 23:50:34 UTC) #17
justincohen
apologies, over to brettw@ for OWNERS. PTAL!
3 years, 10 months ago (2017-01-28 01:01:11 UTC) #18
rkaplow
https://codereview.chromium.org/2646823002/diff/120001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/2646823002/diff/120001/tools/metrics/histograms/histograms.xml#newcode10083 tools/metrics/histograms/histograms.xml:10083: +<histogram name="DesktopIOSPromotion.OAuthTokenResponseCode" units="code"> you need to put the correct ...
3 years, 10 months ago (2017-01-30 16:36:31 UTC) #27
justincohen
https://codereview.chromium.org/2646823002/diff/120001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/2646823002/diff/120001/tools/metrics/histograms/histograms.xml#newcode10083 tools/metrics/histograms/histograms.xml:10083: +<histogram name="DesktopIOSPromotion.OAuthTokenResponseCode" units="code"> On 2017/01/30 16:36:31, rkaplow wrote: > ...
3 years, 10 months ago (2017-01-30 18:30:20 UTC) #28
rkaplow
lgtm yes, that would be best
3 years, 10 months ago (2017-01-30 21:46:54 UTC) #29
justincohen
https://codereview.chromium.org/2646823002/diff/120001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/2646823002/diff/120001/tools/metrics/histograms/histograms.xml#newcode10083 tools/metrics/histograms/histograms.xml:10083: +<histogram name="DesktopIOSPromotion.OAuthTokenResponseCode" units="code"> On 2017/01/30 16:36:31, rkaplow wrote: > ...
3 years, 10 months ago (2017-01-30 23:56:53 UTC) #30
brettw
This project should have a design doc and it should be sent to the chrome-design-docs ...
3 years, 10 months ago (2017-01-31 00:12:25 UTC) #31
mrefaat
On 2017/01/31 00:12:25, brettw (ping after 24h) wrote: > This project should have a design ...
3 years, 10 months ago (2017-01-31 20:12:30 UTC) #32
justincohen
https://codereview.chromium.org/2646823002/diff/140001/chrome/browser/ui/desktop_ios_promotion/sms_service.cc File chrome/browser/ui/desktop_ios_promotion/sms_service.cc (right): https://codereview.chromium.org/2646823002/diff/140001/chrome/browser/ui/desktop_ios_promotion/sms_service.cc#newcode254 chrome/browser/ui/desktop_ios_promotion/sms_service.cc:254: void SMSService::SendSMS(std::string promo_id, On 2017/01/31 00:12:25, brettw (ping after ...
3 years, 10 months ago (2017-02-01 17:20:13 UTC) #34
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/2646823002/160001
3 years, 10 months ago (2017-02-01 17:20:26 UTC) #37
justincohen
also, notified chrome-design-docs@
3 years, 10 months ago (2017-02-01 18:00:08 UTC) #40
commit-bot: I haz the power
3 years, 10 months ago (2017-02-01 18:49:26 UTC) #43
Message was sent while issue was closed.
Committed patchset #9 (id:160001) as
https://chromium.googlesource.com/chromium/src/+/6b2002254c376c156bd5f7d49a6d...

Powered by Google App Engine
This is Rietveld 408576698