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

Issue 1417503010: Variations seed is pulled from the Java application on the first launch of Chrome (Closed)

Created:
5 years, 1 month ago by Alexander Agulenko
Modified:
5 years, 1 month ago
CC:
chromium-reviews, asvitkine+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Variations seed is pulled from the Java application on the first launch of Chrome BUG=551029 Committed: https://crrev.com/25d2111a2857676f524fc4f686ddf14ed08d3fd9 Cr-Commit-Position: refs/heads/master@{#358006}

Patch Set 1 #

Patch Set 2 : Minor fix: removed debug output #

Total comments: 27

Patch Set 3 : Fixes according to code review and lint comments #

Total comments: 34

Patch Set 4 : Minor fixes according to code review comments #

Total comments: 14

Patch Set 5 : Fixes according to latest code review. #

Total comments: 7

Patch Set 6 : Minor fixes #

Patch Set 7 : Minor fixes #

Total comments: 13

Patch Set 8 : Minor fixes according to latest codereview #

Patch Set 9 : Implemented decoding Base64 encoded seed on Java side and then passing it to Chromium core as byte[… #

Patch Set 10 : Moved GetVariationsFirstRunSeedCallback() to a separate .cc file due to clang build errors #

Total comments: 2

Patch Set 11 : Added gyp/gn rules and fixed minor comments according to code review #

Patch Set 12 : Newline added due to clang build error #

Unified diffs Side-by-side diffs Delta from patch set Stats (+166 lines, -4 lines) Patch
M chrome/android/java/src/org/chromium/chrome/browser/preferences/PrefServiceBridge.java View 1 2 3 4 5 6 7 8 2 chunks +40 lines, -0 lines 0 comments Download
M chrome/browser/android/preferences/pref_service_bridge.h View 1 2 3 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/android/preferences/pref_service_bridge.cc View 1 2 3 4 5 6 7 8 9 10 5 chunks +32 lines, -0 lines 0 comments Download
M chrome/browser/metrics/variations/chrome_variations_service_client.h View 1 2 3 4 5 6 7 8 2 chunks +6 lines, -0 lines 0 comments Download
M chrome/browser/metrics/variations/chrome_variations_service_client.cc View 1 2 3 4 5 6 7 8 2 chunks +13 lines, -0 lines 0 comments Download
M components/variations.gypi View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
M components/variations/service/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
M components/variations/service/variations_service.cc View 1 2 3 4 5 6 7 8 2 chunks +4 lines, -0 lines 0 comments Download
M components/variations/service/variations_service_client.h View 1 2 3 4 5 6 7 8 9 2 chunks +5 lines, -0 lines 0 comments Download
A + components/variations/service/variations_service_client.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +5 lines, -4 lines 0 comments Download
M components/variations/variations_seed_store.h View 1 2 3 4 5 6 7 8 5 chunks +19 lines, -0 lines 0 comments Download
M components/variations/variations_seed_store.cc View 1 2 3 4 5 6 7 8 2 chunks +35 lines, -0 lines 0 comments Download

Messages

Total messages: 66 (21 generated)
Steven Holte
https://codereview.chromium.org/1417503010/diff/20001/chrome/browser/android/preferences/pref_service_bridge.cc File chrome/browser/android/preferences/pref_service_bridge.cc (right): https://codereview.chromium.org/1417503010/diff/20001/chrome/browser/android/preferences/pref_service_bridge.cc#newcode979 chrome/browser/android/preferences/pref_service_bridge.cc:979: /* std::string seed; Looks like unfinished code? https://codereview.chromium.org/1417503010/diff/20001/components/variations/variations_seed_store.cc File ...
5 years, 1 month ago (2015-10-28 01:00:18 UTC) #3
Alexei Svitkine (slow)
https://codereview.chromium.org/1417503010/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/preferences/PrefServiceBridge.java File chrome/android/java/src/org/chromium/chrome/browser/preferences/PrefServiceBridge.java (right): https://codereview.chromium.org/1417503010/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/preferences/PrefServiceBridge.java#newcode223 chrome/android/java/src/org/chromium/chrome/browser/preferences/PrefServiceBridge.java:223: // prefs::kVariationsSeedSignature and prefs::kVariationsCountry respectively Can we avoid the ...
5 years, 1 month ago (2015-10-28 15:16:38 UTC) #4
Alexei Svitkine (slow)
By the way, I didn't see you mail this CL before Steve started commenting on ...
5 years, 1 month ago (2015-10-28 18:18:53 UTC) #5
Alexander Agulenko
Please review the updated code. https://codereview.chromium.org/1417503010/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/preferences/PrefServiceBridge.java File chrome/android/java/src/org/chromium/chrome/browser/preferences/PrefServiceBridge.java (right): https://codereview.chromium.org/1417503010/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/preferences/PrefServiceBridge.java#newcode223 chrome/android/java/src/org/chromium/chrome/browser/preferences/PrefServiceBridge.java:223: // prefs::kVariationsSeedSignature and prefs::kVariationsCountry ...
5 years, 1 month ago (2015-10-28 23:05:09 UTC) #7
Steven Holte
Couple nits, otherwise lgtm. https://codereview.chromium.org/1417503010/diff/40001/components/variations/variations_seed_store.cc File components/variations/variations_seed_store.cc (right): https://codereview.chromium.org/1417503010/diff/40001/components/variations/variations_seed_store.cc#newcode343 components/variations/variations_seed_store.cc:343: LOG(WARNING) << "variationsTracker: Trying to ...
5 years, 1 month ago (2015-10-29 01:37:12 UTC) #8
Alexei Svitkine (slow)
+bauerb, who commented on the other CL. Bernhard: Per some offline discussion, the CL is ...
5 years, 1 month ago (2015-10-29 14:59:22 UTC) #10
Alexei Svitkine (slow)
https://codereview.chromium.org/1417503010/diff/40001/chrome/android/java/src/org/chromium/chrome/browser/preferences/PrefServiceBridge.java File chrome/android/java/src/org/chromium/chrome/browser/preferences/PrefServiceBridge.java (right): https://codereview.chromium.org/1417503010/diff/40001/chrome/android/java/src/org/chromium/chrome/browser/preferences/PrefServiceBridge.java#newcode222 chrome/android/java/src/org/chromium/chrome/browser/preferences/PrefServiceBridge.java:222: public static final String VARIATIONS_FIRST_RUN_SEED_SIGNATURE = "variations_seed_signature"; See Bernhard's ...
5 years, 1 month ago (2015-10-29 15:04:12 UTC) #11
Steven Holte
https://codereview.chromium.org/1417503010/diff/40001/chrome/android/java/src/org/chromium/chrome/browser/preferences/PrefServiceBridge.java File chrome/android/java/src/org/chromium/chrome/browser/preferences/PrefServiceBridge.java (right): https://codereview.chromium.org/1417503010/diff/40001/chrome/android/java/src/org/chromium/chrome/browser/preferences/PrefServiceBridge.java#newcode240 chrome/android/java/src/org/chromium/chrome/browser/preferences/PrefServiceBridge.java:240: sVariationsFirstRunSeedData = rawSeed; Actually, I'm a bit confused here ...
5 years, 1 month ago (2015-10-29 21:26:56 UTC) #12
newt (away)
Is there another CL that actually uses the methods added in PrefServiceBridge? It would be ...
5 years, 1 month ago (2015-10-30 00:46:37 UTC) #13
Bernhard Bauer
https://codereview.chromium.org/1417503010/diff/40001/chrome/android/java/src/org/chromium/chrome/browser/preferences/PrefServiceBridge.java File chrome/android/java/src/org/chromium/chrome/browser/preferences/PrefServiceBridge.java (right): https://codereview.chromium.org/1417503010/diff/40001/chrome/android/java/src/org/chromium/chrome/browser/preferences/PrefServiceBridge.java#newcode240 chrome/android/java/src/org/chromium/chrome/browser/preferences/PrefServiceBridge.java:240: sVariationsFirstRunSeedData = rawSeed; On 2015/10/30 00:46:36, newt wrote: > ...
5 years, 1 month ago (2015-10-30 09:56:08 UTC) #14
Steven Holte
https://codereview.chromium.org/1417503010/diff/40001/components/variations/variations_seed_store.h File components/variations/variations_seed_store.h (right): https://codereview.chromium.org/1417503010/diff/40001/components/variations/variations_seed_store.h#newcode81 components/variations/variations_seed_store.h:81: const base::Callback<void(std::string*, std::string*, std::string*)>& On 2015/10/30 09:56:08, Bernhard Bauer ...
5 years, 1 month ago (2015-11-02 19:05:40 UTC) #15
Bernhard Bauer
https://codereview.chromium.org/1417503010/diff/40001/components/variations/variations_seed_store.h File components/variations/variations_seed_store.h (right): https://codereview.chromium.org/1417503010/diff/40001/components/variations/variations_seed_store.h#newcode81 components/variations/variations_seed_store.h:81: const base::Callback<void(std::string*, std::string*, std::string*)>& On 2015/11/02 19:05:40, Steven Holte ...
5 years, 1 month ago (2015-11-02 19:10:07 UTC) #16
Alexei Svitkine (slow)
https://codereview.chromium.org/1417503010/diff/40001/components/variations/variations_seed_store.h File components/variations/variations_seed_store.h (right): https://codereview.chromium.org/1417503010/diff/40001/components/variations/variations_seed_store.h#newcode81 components/variations/variations_seed_store.h:81: const base::Callback<void(std::string*, std::string*, std::string*)>& On 2015/11/02 19:10:07, Bernhard Bauer ...
5 years, 1 month ago (2015-11-02 20:39:21 UTC) #17
Alexander Agulenko
Fixed most objections. Still working on moving methods from PrefServiceBridge to a separate class. https://codereview.chromium.org/1417503010/diff/40001/chrome/android/java/src/org/chromium/chrome/browser/preferences/PrefServiceBridge.java ...
5 years, 1 month ago (2015-11-02 22:55:34 UTC) #18
Bernhard Bauer
https://codereview.chromium.org/1417503010/diff/40001/chrome/android/java/src/org/chromium/chrome/browser/preferences/PrefServiceBridge.java File chrome/android/java/src/org/chromium/chrome/browser/preferences/PrefServiceBridge.java (right): https://codereview.chromium.org/1417503010/diff/40001/chrome/android/java/src/org/chromium/chrome/browser/preferences/PrefServiceBridge.java#newcode222 chrome/android/java/src/org/chromium/chrome/browser/preferences/PrefServiceBridge.java:222: public static final String VARIATIONS_FIRST_RUN_SEED_SIGNATURE = "variations_seed_signature"; On 2015/10/30 ...
5 years, 1 month ago (2015-11-03 09:44:49 UTC) #19
Bernhard Bauer
https://codereview.chromium.org/1417503010/diff/40001/chrome/android/java/src/org/chromium/chrome/browser/preferences/PrefServiceBridge.java File chrome/android/java/src/org/chromium/chrome/browser/preferences/PrefServiceBridge.java (right): https://codereview.chromium.org/1417503010/diff/40001/chrome/android/java/src/org/chromium/chrome/browser/preferences/PrefServiceBridge.java#newcode222 chrome/android/java/src/org/chromium/chrome/browser/preferences/PrefServiceBridge.java:222: public static final String VARIATIONS_FIRST_RUN_SEED_SIGNATURE = "variations_seed_signature"; On 2015/11/03 ...
5 years, 1 month ago (2015-11-03 09:45:22 UTC) #20
Alexei Svitkine (slow)
https://codereview.chromium.org/1417503010/diff/60001/chrome/browser/android/preferences/pref_service_bridge.cc File chrome/browser/android/preferences/pref_service_bridge.cc (right): https://codereview.chromium.org/1417503010/diff/60001/chrome/browser/android/preferences/pref_service_bridge.cc#newcode121 chrome/browser/android/preferences/pref_service_bridge.cc:121: std::string* out) { I suggest just making this return ...
5 years, 1 month ago (2015-11-03 18:34:03 UTC) #21
Alexei Svitkine (slow)
I filed crbug.com/551029 for this, please set BUG=551029 on the CL.
5 years, 1 month ago (2015-11-03 18:40:04 UTC) #22
Alexander Agulenko
On 2015/11/03 18:40:04, Alexei Svitkine (slow) wrote: > I filed crbug.com/551029 for this, please set ...
5 years, 1 month ago (2015-11-03 18:40:52 UTC) #24
Alexei Svitkine (slow)
https://codereview.chromium.org/1417503010/diff/40001/chrome/android/java/src/org/chromium/chrome/browser/preferences/PrefServiceBridge.java File chrome/android/java/src/org/chromium/chrome/browser/preferences/PrefServiceBridge.java (right): https://codereview.chromium.org/1417503010/diff/40001/chrome/android/java/src/org/chromium/chrome/browser/preferences/PrefServiceBridge.java#newcode240 chrome/android/java/src/org/chromium/chrome/browser/preferences/PrefServiceBridge.java:240: sVariationsFirstRunSeedData = rawSeed; On 2015/11/03 09:44:49, Bernhard Bauer wrote: ...
5 years, 1 month ago (2015-11-03 18:44:01 UTC) #25
Alexander Agulenko
https://codereview.chromium.org/1417503010/diff/40001/chrome/android/java/src/org/chromium/chrome/browser/preferences/PrefServiceBridge.java File chrome/android/java/src/org/chromium/chrome/browser/preferences/PrefServiceBridge.java (right): https://codereview.chromium.org/1417503010/diff/40001/chrome/android/java/src/org/chromium/chrome/browser/preferences/PrefServiceBridge.java#newcode222 chrome/android/java/src/org/chromium/chrome/browser/preferences/PrefServiceBridge.java:222: public static final String VARIATIONS_FIRST_RUN_SEED_SIGNATURE = "variations_seed_signature"; On 2015/11/03 ...
5 years, 1 month ago (2015-11-04 08:00:59 UTC) #26
Bernhard Bauer
https://codereview.chromium.org/1417503010/diff/80001/chrome/browser/android/preferences/pref_service_bridge.cc File chrome/browser/android/preferences/pref_service_bridge.cc (right): https://codereview.chromium.org/1417503010/diff/80001/chrome/browser/android/preferences/pref_service_bridge.cc#newcode966 chrome/browser/android/preferences/pref_service_bridge.cc:966: env, GetApplicationContext()); Indent. Please just run `git cl format` ...
5 years, 1 month ago (2015-11-04 09:08:57 UTC) #27
Alexander Agulenko
https://codereview.chromium.org/1417503010/diff/80001/chrome/browser/android/preferences/pref_service_bridge.cc File chrome/browser/android/preferences/pref_service_bridge.cc (right): https://codereview.chromium.org/1417503010/diff/80001/chrome/browser/android/preferences/pref_service_bridge.cc#newcode966 chrome/browser/android/preferences/pref_service_bridge.cc:966: env, GetApplicationContext()); On 2015/11/04 09:08:57, Bernhard Bauer wrote: > ...
5 years, 1 month ago (2015-11-04 09:42:29 UTC) #28
Bernhard Bauer
lgtm https://codereview.chromium.org/1417503010/diff/80001/chrome/browser/android/preferences/pref_service_bridge.cc File chrome/browser/android/preferences/pref_service_bridge.cc (right): https://codereview.chromium.org/1417503010/diff/80001/chrome/browser/android/preferences/pref_service_bridge.cc#newcode966 chrome/browser/android/preferences/pref_service_bridge.cc:966: env, GetApplicationContext()); On 2015/11/04 09:42:29, Alexander Agulenko wrote: ...
5 years, 1 month ago (2015-11-04 09:59:59 UTC) #29
Alexei Svitkine (slow)
LGTM % my remaining comments below I'm hoping we can land this today and to ...
5 years, 1 month ago (2015-11-04 16:47:23 UTC) #30
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1417503010/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1417503010/120001
5 years, 1 month ago (2015-11-04 17:50:28 UTC) #33
Alexei Svitkine (slow)
I've sent of a cq try run of this, to see if there's any issues ...
5 years, 1 month ago (2015-11-04 17:50:52 UTC) #34
newt (away)
https://codereview.chromium.org/1417503010/diff/120001/chrome/android/java/src/org/chromium/chrome/browser/preferences/PrefServiceBridge.java File chrome/android/java/src/org/chromium/chrome/browser/preferences/PrefServiceBridge.java (right): https://codereview.chromium.org/1417503010/diff/120001/chrome/android/java/src/org/chromium/chrome/browser/preferences/PrefServiceBridge.java#newcode223 chrome/android/java/src/org/chromium/chrome/browser/preferences/PrefServiceBridge.java:223: // TODO(agulenko): Move this piece of code to a ...
5 years, 1 month ago (2015-11-04 18:10:43 UTC) #35
Alexander Agulenko
https://codereview.chromium.org/1417503010/diff/120001/chrome/android/java/src/org/chromium/chrome/browser/preferences/PrefServiceBridge.java File chrome/android/java/src/org/chromium/chrome/browser/preferences/PrefServiceBridge.java (right): https://codereview.chromium.org/1417503010/diff/120001/chrome/android/java/src/org/chromium/chrome/browser/preferences/PrefServiceBridge.java#newcode223 chrome/android/java/src/org/chromium/chrome/browser/preferences/PrefServiceBridge.java:223: // TODO(agulenko): Move this piece of code to a ...
5 years, 1 month ago (2015-11-05 00:44:22 UTC) #36
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1417503010/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1417503010/160001
5 years, 1 month ago (2015-11-05 00:46:26 UTC) #38
newt (away)
chrome/android and chrome/browser/android lgtm. Thanks!
5 years, 1 month ago (2015-11-05 00:53:02 UTC) #39
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: ios_dbg_simulator_ninja on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_dbg_simulator_ninja/builds/90312) mac_chromium_gn_rel on ...
5 years, 1 month ago (2015-11-05 00:54:16 UTC) #41
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1417503010/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1417503010/180001
5 years, 1 month ago (2015-11-05 02:04:17 UTC) #43
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_compile_dbg_32_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_compile_dbg_32_ng/builds/118539) linux_chromium_rel_ng on ...
5 years, 1 month ago (2015-11-05 02:14:01 UTC) #45
Alexei Svitkine (slow)
LGTM % two small nits https://codereview.chromium.org/1417503010/diff/180001/chrome/browser/android/preferences/pref_service_bridge.cc File chrome/browser/android/preferences/pref_service_bridge.cc (right): https://codereview.chromium.org/1417503010/diff/180001/chrome/browser/android/preferences/pref_service_bridge.cc#newcode120 chrome/browser/android/preferences/pref_service_bridge.cc:120: if (!byte_array) { Nit: ...
5 years, 1 month ago (2015-11-05 02:28:38 UTC) #46
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1417503010/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1417503010/180001
5 years, 1 month ago (2015-11-05 02:31:28 UTC) #51
Alexei Svitkine (slow)
(maybe you forgot to upload a new patch set with my nits addressed and the ...
5 years, 1 month ago (2015-11-05 03:49:59 UTC) #52
Alexander Agulenko
On 2015/11/05 03:49:59, Alexei Svitkine (slow) wrote: > (maybe you forgot to upload a new ...
5 years, 1 month ago (2015-11-05 03:59:40 UTC) #53
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1417503010/200001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1417503010/200001
5 years, 1 month ago (2015-11-05 04:04:10 UTC) #55
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: ios_dbg_simulator_ninja on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_dbg_simulator_ninja/builds/90398)
5 years, 1 month ago (2015-11-05 04:14:41 UTC) #57
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1417503010/220001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1417503010/220001
5 years, 1 month ago (2015-11-05 04:18:06 UTC) #59
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 1 month ago (2015-11-05 05:09:58 UTC) #61
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1417503010/220001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1417503010/220001
5 years, 1 month ago (2015-11-05 05:12:28 UTC) #64
commit-bot: I haz the power
Committed patchset #12 (id:220001)
5 years, 1 month ago (2015-11-05 05:16:24 UTC) #65
commit-bot: I haz the power
5 years, 1 month ago (2015-11-05 05:17:02 UTC) #66
Message was sent while issue was closed.
Patchset 12 (id:??) landed as
https://crrev.com/25d2111a2857676f524fc4f686ddf14ed08d3fd9
Cr-Commit-Position: refs/heads/master@{#358006}

Powered by Google App Engine
This is Rietveld 408576698