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

Issue 2558743003: Add generic functions for getting typed variation parameter values (Closed)

Created:
4 years ago by jkrcal
Modified:
4 years ago
CC:
chromium-reviews, asvitkine+watch_chromium.org, ntp-dev+reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add generic functions for getting typed variation parameter values This CL introduces generic functions for parsing variation parameters into int, double, and bool (internally, variation parameters are represented by a string). The CL replaces some functions emulating this functionality in ntp_snippets by the new ones in variations. More clean-up in ntp_snippets is needed, left for further CLs. BUG=671979 Committed: https://crrev.com/d5dd68d3f4af51d51ceed869058b0d639ebe2797 Cr-Commit-Position: refs/heads/master@{#437491}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Alexei's comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+307 lines, -91 lines) Patch
M chrome/browser/ntp_snippets/download_suggestions_provider.cc View 1 2 chunks +2 lines, -1 line 0 comments Download
M components/ntp_snippets/bookmarks/bookmark_suggestions_provider.cc View 1 chunk +7 lines, -5 lines 0 comments Download
M components/ntp_snippets/features.h View 1 chunk +0 lines, -11 lines 0 comments Download
M components/ntp_snippets/features.cc View 2 chunks +0 lines, -43 lines 0 comments Download
M components/ntp_snippets/offline_pages/recent_tab_suggestions_provider.cc View 1 2 chunks +4 lines, -3 lines 0 comments Download
A components/ntp_snippets/remote/remote_suggestions_hard_scheduler.h View 1 1 chunk +38 lines, -0 lines 0 comments Download
A components/ntp_snippets/remote/remote_suggestions_scheduler.h View 1 1 chunk +61 lines, -0 lines 0 comments Download
M components/ntp_snippets/sessions/foreign_sessions_suggestions_provider.cc View 2 chunks +8 lines, -6 lines 0 comments Download
M components/ntp_snippets/user_classifier.cc View 3 chunks +17 lines, -21 lines 0 comments Download
M components/variations/variations_associated_data.h View 1 chunk +26 lines, -1 line 0 comments Download
M components/variations/variations_associated_data.cc View 1 2 chunks +59 lines, -0 lines 0 comments Download
M components/variations/variations_associated_data_unittest.cc View 1 chunk +85 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 17 (9 generated)
jkrcal
Alexei, could you PTAL at components/variations/*? Marc, could you PTAL at */ntp_snippets/*?
4 years ago (2016-12-07 10:03:02 UTC) #4
Marc Treib
ntp_snippets LGTM, thanks!
4 years ago (2016-12-07 10:06:20 UTC) #5
jkrcal
Thanks, Marc! Alexei, friendly ping!
4 years ago (2016-12-08 13:51:47 UTC) #8
Alexei Svitkine (slow)
lgtm https://codereview.chromium.org/2558743003/diff/1/components/variations/variations_associated_data.cc File components/variations/variations_associated_data.cc (right): https://codereview.chromium.org/2558743003/diff/1/components/variations/variations_associated_data.cc#newcode202 components/variations/variations_associated_data.cc:202: LOG(WARNING) << "Failed to parse variation param " ...
4 years ago (2016-12-08 21:08:33 UTC) #9
jkrcal
Thanks, Alexei! https://codereview.chromium.org/2558743003/diff/1/components/variations/variations_associated_data.cc File components/variations/variations_associated_data.cc (right): https://codereview.chromium.org/2558743003/diff/1/components/variations/variations_associated_data.cc#newcode202 components/variations/variations_associated_data.cc:202: LOG(WARNING) << "Failed to parse variation param ...
4 years ago (2016-12-09 06:59:32 UTC) #10
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/2558743003/20001
4 years ago (2016-12-09 06:59:56 UTC) #13
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years ago (2016-12-09 07:44:51 UTC) #15
commit-bot: I haz the power
4 years ago (2016-12-09 07:47:05 UTC) #17
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/d5dd68d3f4af51d51ceed869058b0d639ebe2797
Cr-Commit-Position: refs/heads/master@{#437491}

Powered by Google App Engine
This is Rietveld 408576698