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

Issue 1437833002: Added check for avoid repeating variations first run seed fetch (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

Added check for avoid repeating variations first run seed fetch BUG=551029

Patch Set 1 #

Total comments: 2

Patch Set 2 : Implemented marking seed storing as successful from C++ side #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+52 lines, -1 line) Patch
M components/variations/android/java/src/org/chromium/components/variations/firstrun/VariationsSeedBridge.java View 1 2 chunks +24 lines, -0 lines 0 comments Download
M components/variations/android/java/src/org/chromium/components/variations/firstrun/VariationsSeedService.java View 1 2 chunks +7 lines, -0 lines 2 comments Download
M components/variations/android/variations_seed_bridge.h View 1 1 chunk +5 lines, -1 line 0 comments Download
M components/variations/android/variations_seed_bridge.cc View 1 1 chunk +6 lines, -0 lines 0 comments Download
M components/variations/variations_seed_store.cc View 1 2 chunks +10 lines, -0 lines 0 comments Download

Messages

Total messages: 17 (4 generated)
Alexander Agulenko
5 years, 1 month ago (2015-11-11 13:05:00 UTC) #4
Alexei Svitkine (slow)
https://codereview.chromium.org/1437833002/diff/1/components/variations/android/java/src/org/chromium/components/variations/firstrun/VariationsSeedService.java File components/variations/android/java/src/org/chromium/components/variations/firstrun/VariationsSeedService.java (right): https://codereview.chromium.org/1437833002/diff/1/components/variations/android/java/src/org/chromium/components/variations/firstrun/VariationsSeedService.java#newcode73 components/variations/android/java/src/org/chromium/components/variations/firstrun/VariationsSeedService.java:73: VariationsSeedBridge.markVariationsFirstRunSeedFetchSucceeded(getApplicationContext()); I'm not convinced this is the right place ...
5 years, 1 month ago (2015-11-11 15:04:27 UTC) #5
chromium-reviews
where hasJavaPref() checks that we've fetched a pref while hasNativePref() checks whether the C++ code ...
5 years, 1 month ago (2015-11-11 19:51:55 UTC) #6
Alexei Svitkine (slow)
Hmm, good question. Instead of from LoadSeed(), we should call it from StoreSeed() when it ...
5 years, 1 month ago (2015-11-11 20:19:56 UTC) #7
chromium-reviews
Can I then add a new pref into local state file? On Wed, Nov 11, ...
5 years, 1 month ago (2015-11-11 20:22:38 UTC) #8
chromium-reviews
I mean something like new boolean pref which I will set as true after successful ...
5 years, 1 month ago (2015-11-11 20:24:35 UTC) #9
Alexei Svitkine (slow)
Why do you need a new pref? The client logic should just be "if (current ...
5 years, 1 month ago (2015-11-11 20:25:15 UTC) #10
chromium-reviews
Okay, got it. But what then the function hasJavaPref() is? What is it supposed to ...
5 years, 1 month ago (2015-11-11 20:28:17 UTC) #11
Alexander Agulenko
5 years, 1 month ago (2015-11-12 02:42:56 UTC) #13
Alexander Agulenko
https://codereview.chromium.org/1437833002/diff/1/components/variations/android/java/src/org/chromium/components/variations/firstrun/VariationsSeedService.java File components/variations/android/java/src/org/chromium/components/variations/firstrun/VariationsSeedService.java (right): https://codereview.chromium.org/1437833002/diff/1/components/variations/android/java/src/org/chromium/components/variations/firstrun/VariationsSeedService.java#newcode73 components/variations/android/java/src/org/chromium/components/variations/firstrun/VariationsSeedService.java:73: VariationsSeedBridge.markVariationsFirstRunSeedFetchSucceeded(getApplicationContext()); On 2015/11/11 15:04:27, Alexei Svitkine (slow) wrote: > ...
5 years, 1 month ago (2015-11-12 03:45:01 UTC) #14
Steven Holte
https://codereview.chromium.org/1437833002/diff/20001/components/variations/android/java/src/org/chromium/components/variations/firstrun/VariationsSeedService.java File components/variations/android/java/src/org/chromium/components/variations/firstrun/VariationsSeedService.java (right): https://codereview.chromium.org/1437833002/diff/20001/components/variations/android/java/src/org/chromium/components/variations/firstrun/VariationsSeedService.java#newcode46 components/variations/android/java/src/org/chromium/components/variations/firstrun/VariationsSeedService.java:46: sFetchInProgress = false; Where do you set sFetchInProgress = ...
5 years, 1 month ago (2015-11-12 19:33:19 UTC) #15
Alexander Agulenko
https://codereview.chromium.org/1437833002/diff/20001/components/variations/android/java/src/org/chromium/components/variations/firstrun/VariationsSeedService.java File components/variations/android/java/src/org/chromium/components/variations/firstrun/VariationsSeedService.java (right): https://codereview.chromium.org/1437833002/diff/20001/components/variations/android/java/src/org/chromium/components/variations/firstrun/VariationsSeedService.java#newcode46 components/variations/android/java/src/org/chromium/components/variations/firstrun/VariationsSeedService.java:46: sFetchInProgress = false; On 2015/11/12 19:33:19, Steven Holte wrote: ...
5 years, 1 month ago (2015-11-12 22:06:48 UTC) #16
Alexander Agulenko
5 years, 1 month ago (2015-11-12 22:08:20 UTC) #17
Message was sent while issue was closed.
On 2015/11/12 22:06:48, Alexander Agulenko wrote:
>
https://codereview.chromium.org/1437833002/diff/20001/components/variations/a...
> File
>
components/variations/android/java/src/org/chromium/components/variations/firstrun/VariationsSeedService.java
> (right):
> 
>
https://codereview.chromium.org/1437833002/diff/20001/components/variations/a...
>
components/variations/android/java/src/org/chromium/components/variations/firstrun/VariationsSeedService.java:46:
> sFetchInProgress = false;
> On 2015/11/12 19:33:19, Steven Holte wrote:
> > Where do you set sFetchInProgress = true?
> 
> Seems like I occasionally removed it (maybe simply forgot).
> 
> Done.
> 
> This CL is now merged to https://codereview.chromium.org/1438123002/, let's
move
> there (I will close this issue).

Sorry, the correct merged issue is https://codereview.chromium.org/1437833004/.

Powered by Google App Engine
This is Rietveld 408576698