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

Issue 789613004: Decision whenever "Allow to collect URL?" bubble should be shown or not (Closed)

Created:
6 years ago by melandory
Modified:
6 years ago
CC:
chromium-reviews, gcasto+watchlist_chromium.org, mkwst+watchlist-passwords_chromium.org, vasilii
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Decision whenever "Allow to collect URL?" bubble should be shown or not is made based on Finch experiment. If user belongs to group for which bubble should be shown, then we calculate a time span when bubble should appear, if it's current span, when we show bubble and saving in settings information that bubble was shown, so we'll never show bubble again. If it's not current time span when we do not show bubble this time. BUG=435080 R=vabr@chromium.org Committed: https://crrev.com/c489fa833c62edf608a6ecbf553036fe9d7a3292 Cr-Commit-Position: refs/heads/master@{#308170}

Patch Set 1 : This code belongs to issue 777423004. #

Patch Set 2 : Changes which belong to this CL. #

Total comments: 22

Patch Set 3 : On top of master #

Total comments: 28

Patch Set 4 : #

Total comments: 3

Patch Set 5 : Do not review #

Patch Set 6 : Please, review #

Total comments: 59

Patch Set 7 : Please review #

Total comments: 7

Patch Set 8 : Do not review #

Patch Set 9 : Please review. #

Total comments: 14

Patch Set 10 : #

Patch Set 11 : #

Total comments: 4

Patch Set 12 : Don't review #

Patch Set 13 : Don't review #

Patch Set 14 : #

Total comments: 9

Patch Set 15 : #

Patch Set 16 : Comment changed #

Total comments: 13

Patch Set 17 : kWasAllowToCollectURLBubbleShown->kAllowToCollectURLBubbleWasShown #

Patch Set 18 : #

Patch Set 19 : #

Messages

Total messages: 50 (9 generated)
melandory
Hi Vaclav, I can't land https://codereview.chromium.org/777423004/ because I'm missing review for DEPS file. But I ...
6 years ago (2014-12-10 14:50:42 UTC) #2
vabr (Chromium)
Hi Tanja, Thanks, I reviewed patch set 2 vs. patch set 1. Btw., if you ...
6 years ago (2014-12-10 18:19:55 UTC) #3
melandory
https://codereview.chromium.org/789613004/diff/40001/chrome/browser/password_manager/chrome_password_manager_client.cc File chrome/browser/password_manager/chrome_password_manager_client.cc (right): https://codereview.chromium.org/789613004/diff/40001/chrome/browser/password_manager/chrome_password_manager_client.cc#newcode159 chrome/browser/password_manager/chrome_password_manager_client.cc:159: std::stringstream profile_uuid_stream; On 2014/12/10 18:19:54, vabr (Chromium) wrote: > ...
6 years ago (2014-12-11 08:37:38 UTC) #8
vabr (Chromium)
Hi Tanja, I left a couple more of comments + the one I pinged from ...
6 years ago (2014-12-11 09:37:55 UTC) #9
melandory
On 2014/12/11 09:37:55, vabr (Chromium) wrote: > Hi Tanja, > > I left a couple ...
6 years ago (2014-12-11 10:59:58 UTC) #10
vabr (Chromium)
On 2014/12/11 10:59:58, melandory wrote: > On 2014/12/11 09:37:55, vabr (Chromium) wrote: > > Hi ...
6 years ago (2014-12-11 11:59:57 UTC) #11
melandory
On 2014/12/11 11:59:57, vabr (Chromium) wrote: > On 2014/12/11 10:59:58, melandory wrote: > > On ...
6 years ago (2014-12-11 12:18:31 UTC) #12
melandory
https://codereview.chromium.org/789613004/diff/40001/components/password_manager/core/browser/password_manager_url_collection_experiment_unittest.cc File components/password_manager/core/browser/password_manager_url_collection_experiment_unittest.cc (right): https://codereview.chromium.org/789613004/diff/40001/components/password_manager/core/browser/password_manager_url_collection_experiment_unittest.cc#newcode109 components/password_manager/core/browser/password_manager_url_collection_experiment_unittest.cc:109: SetupNeverShowBubbleExperimentGroup(); On 2014/12/11 09:37:55, vabr (Chromium) wrote: > On ...
6 years ago (2014-12-11 13:16:10 UTC) #14
vasilii
I'm for simplicity. So storing a float from [0, 1) in the preferences sounds good ...
6 years ago (2014-12-11 13:20:12 UTC) #16
vasilii
https://codereview.chromium.org/789613004/diff/160001/components/password_manager/core/browser/password_manager_url_collection_experiment.h File components/password_manager/core/browser/password_manager_url_collection_experiment.h (right): https://codereview.chromium.org/789613004/diff/160001/components/password_manager/core/browser/password_manager_url_collection_experiment.h#newcode46 components/password_manager/core/browser/password_manager_url_collection_experiment.h:46: void RecordBubbleClosed(PrefService* prefs); While I understand where this function ...
6 years ago (2014-12-11 13:45:19 UTC) #17
vabr (Chromium)
Hi Tanja, Some more comments. Following up on Vasilii's sentences: > I'm for simplicity. So ...
6 years ago (2014-12-11 14:05:13 UTC) #18
melandory
> Now about the uniqueness: I'm actually still a bit puzzled. > Currently, your code ...
6 years ago (2014-12-11 14:14:25 UTC) #19
vabr (Chromium)
On 2014/12/11 14:14:25, melandory wrote: > > Now about the uniqueness: I'm actually still a ...
6 years ago (2014-12-11 14:40:10 UTC) #20
melandory
On 2014/12/11 14:40:10, vabr (Chromium) wrote: > On 2014/12/11 14:14:25, melandory wrote: > > > ...
6 years ago (2014-12-11 14:42:51 UTC) #21
vabr (Chromium)
https://codereview.chromium.org/789613004/diff/120001/components/password_manager/core/browser/password_manager_url_collection_experiment_unittest.cc File components/password_manager/core/browser/password_manager_url_collection_experiment_unittest.cc (right): https://codereview.chromium.org/789613004/diff/120001/components/password_manager/core/browser/password_manager_url_collection_experiment_unittest.cc#newcode55 components/password_manager/core/browser/password_manager_url_collection_experiment_unittest.cc:55: void PretendThatThisIsTimeSpanWhenBubbleAppears( On 2014/12/11 13:20:11, vasilii wrote: > Here ...
6 years ago (2014-12-11 16:28:57 UTC) #23
melandory
https://codereview.chromium.org/789613004/diff/40001/components/password_manager/core/browser/password_manager_url_collection_experiment.cc File components/password_manager/core/browser/password_manager_url_collection_experiment.cc (right): https://codereview.chromium.org/789613004/diff/40001/components/password_manager/core/browser/password_manager_url_collection_experiment.cc#newcode96 components/password_manager/core/browser/password_manager_url_collection_experiment.cc:96: if (base::FieldTrialList::TrialExists(kExperimentName)) { On 2014/12/11 08:37:38, melandory wrote: > ...
6 years ago (2014-12-11 17:05:41 UTC) #24
vasilii
https://codereview.chromium.org/789613004/diff/220001/components/password_manager/core/browser/password_manager_url_collection_experiment.cc File components/password_manager/core/browser/password_manager_url_collection_experiment.cc (right): https://codereview.chromium.org/789613004/diff/220001/components/password_manager/core/browser/password_manager_url_collection_experiment.cc#newcode7 components/password_manager/core/browser/password_manager_url_collection_experiment.cc:7: #include "base/hash.h" Clean up unused headers like this one. ...
6 years ago (2014-12-11 18:46:46 UTC) #25
vabr (Chromium)
Thanks, Tanja. This already LGTM, with some comments below. Cheers, Vaclav https://codereview.chromium.org/789613004/diff/220001/components/password_manager/core/browser/password_manager_url_collection_experiment.cc File components/password_manager/core/browser/password_manager_url_collection_experiment.cc (right): ...
6 years ago (2014-12-11 18:55:11 UTC) #26
melandory
https://codereview.chromium.org/789613004/diff/220001/components/password_manager/core/browser/password_manager_url_collection_experiment.cc File components/password_manager/core/browser/password_manager_url_collection_experiment.cc (right): https://codereview.chromium.org/789613004/diff/220001/components/password_manager/core/browser/password_manager_url_collection_experiment.cc#newcode7 components/password_manager/core/browser/password_manager_url_collection_experiment.cc:7: #include "base/hash.h" On 2014/12/11 18:46:46, vasilii wrote: > Clean ...
6 years ago (2014-12-11 23:10:00 UTC) #27
melandory
6 years ago (2014-12-11 23:10:01 UTC) #28
vabr (Chromium)
Still LGTM, Thanks also for the off-line explanations! Vaclav https://codereview.chromium.org/789613004/diff/220001/components/password_manager/core/browser/password_manager_url_collection_experiment.cc File components/password_manager/core/browser/password_manager_url_collection_experiment.cc (right): https://codereview.chromium.org/789613004/diff/220001/components/password_manager/core/browser/password_manager_url_collection_experiment.cc#newcode56 components/password_manager/core/browser/password_manager_url_collection_experiment.cc:56: ...
6 years ago (2014-12-12 08:47:31 UTC) #29
melandory
https://codereview.chromium.org/789613004/diff/240001/components/password_manager/core/browser/password_manager.cc File components/password_manager/core/browser/password_manager.cc (right): https://codereview.chromium.org/789613004/diff/240001/components/password_manager/core/browser/password_manager.cc#newcode329 components/password_manager/core/browser/password_manager.cc:329: if (failure == NO_MATCHING_FORM && IsSavingEnabledForCurrentPage() && On 2014/12/12 ...
6 years ago (2014-12-12 09:00:58 UTC) #30
vasilii
https://codereview.chromium.org/789613004/diff/220001/components/password_manager/core/browser/password_manager_url_collection_experiment.h File components/password_manager/core/browser/password_manager_url_collection_experiment.h (right): https://codereview.chromium.org/789613004/diff/220001/components/password_manager/core/browser/password_manager_url_collection_experiment.h#newcode12 components/password_manager/core/browser/password_manager_url_collection_experiment.h:12: class Time; On 2014/12/11 23:09:59, melandory wrote: > On ...
6 years ago (2014-12-12 12:10:54 UTC) #31
melandory
https://codereview.chromium.org/789613004/diff/280001/components/password_manager/core/browser/password_manager_url_collection_experiment.cc File components/password_manager/core/browser/password_manager_url_collection_experiment.cc (right): https://codereview.chromium.org/789613004/diff/280001/components/password_manager/core/browser/password_manager_url_collection_experiment.cc#newcode25 components/password_manager/core/browser/password_manager_url_collection_experiment.cc:25: const int defaultValueForStartingDayFactor = -1; On 2014/12/12 12:10:54, vasilii ...
6 years ago (2014-12-12 13:30:42 UTC) #32
vasilii
My comments about the preference name and an include are not addressed. https://codereview.chromium.org/789613004/diff/280001/components/password_manager/core/browser/password_manager_url_collection_experiment.cc File components/password_manager/core/browser/password_manager_url_collection_experiment.cc ...
6 years ago (2014-12-12 13:46:59 UTC) #33
melandory
On 2014/12/12 13:46:59, vasilii wrote: > My comments about the preference name and an include ...
6 years ago (2014-12-12 13:55:20 UTC) #34
melandory
Sorry if missed something. https://codereview.chromium.org/789613004/diff/280001/components/password_manager/core/browser/password_manager_url_collection_experiment.cc File components/password_manager/core/browser/password_manager_url_collection_experiment.cc (right): https://codereview.chromium.org/789613004/diff/280001/components/password_manager/core/browser/password_manager_url_collection_experiment.cc#newcode42 components/password_manager/core/browser/password_manager_url_collection_experiment.cc:42: bool ShouldShowBubbleExperiment(PrefService* prefs, base::Clock* clock) ...
6 years ago (2014-12-12 14:38:05 UTC) #35
vabr (Chromium)
https://codereview.chromium.org/789613004/diff/280001/components/password_manager/core/browser/password_manager_url_collection_experiment.h File components/password_manager/core/browser/password_manager_url_collection_experiment.h (right): https://codereview.chromium.org/789613004/diff/280001/components/password_manager/core/browser/password_manager_url_collection_experiment.h#newcode47 components/password_manager/core/browser/password_manager_url_collection_experiment.h:47: // and DetermineStartOfActivityPeriod computes the start of the period. ...
6 years ago (2014-12-12 14:58:06 UTC) #36
vabr (Chromium)
LGTM with two light comments. :) https://codereview.chromium.org/789613004/diff/380001/components/password_manager/core/common/password_manager_pref_names.h File components/password_manager/core/common/password_manager_pref_names.h (right): https://codereview.chromium.org/789613004/diff/380001/components/password_manager/core/common/password_manager_pref_names.h#newcode15 components/password_manager/core/common/password_manager_pref_names.h:15: // component. Keep ...
6 years ago (2014-12-12 15:04:13 UTC) #37
vasilii
It's 4th time I'm asking to change the preference name. I'm not going to give ...
6 years ago (2014-12-12 15:31:06 UTC) #38
melandory
On 2014/12/12 15:31:06, vasilii wrote: > It's 4th time I'm asking to change the preference ...
6 years ago (2014-12-12 15:47:15 UTC) #39
melandory
https://codereview.chromium.org/789613004/diff/380001/components/password_manager/core/browser/password_manager_url_collection_experiment.h File components/password_manager/core/browser/password_manager_url_collection_experiment.h (right): https://codereview.chromium.org/789613004/diff/380001/components/password_manager/core/browser/password_manager_url_collection_experiment.h#newcode11 components/password_manager/core/browser/password_manager_url_collection_experiment.h:11: class Clock; On 2014/12/12 15:31:06, vasilii wrote: > unused ...
6 years ago (2014-12-12 15:58:12 UTC) #40
vasilii
https://codereview.chromium.org/789613004/diff/380001/components/password_manager/core/common/password_manager_pref_names.h File components/password_manager/core/common/password_manager_pref_names.h (right): https://codereview.chromium.org/789613004/diff/380001/components/password_manager/core/common/password_manager_pref_names.h#newcode30 components/password_manager/core/common/password_manager_pref_names.h:30: extern const char kWasAllowToCollectURLBubbleShown[]; On 2014/12/12 15:58:12, melandory wrote: ...
6 years ago (2014-12-12 16:00:06 UTC) #41
melandory
https://codereview.chromium.org/789613004/diff/380001/components/password_manager/core/common/password_manager_pref_names.h File components/password_manager/core/common/password_manager_pref_names.h (right): https://codereview.chromium.org/789613004/diff/380001/components/password_manager/core/common/password_manager_pref_names.h#newcode30 components/password_manager/core/common/password_manager_pref_names.h:30: extern const char kWasAllowToCollectURLBubbleShown[]; On 2014/12/12 16:00:05, vasilii wrote: ...
6 years ago (2014-12-12 16:38:36 UTC) #42
Alexei Svitkine (slow)
syntactically, LGTM % comments below However, I'm still not convinced of your 1-year scaling approach. ...
6 years ago (2014-12-12 16:38:51 UTC) #43
vasilii
lgtm
6 years ago (2014-12-12 16:47:14 UTC) #44
melandory
https://codereview.chromium.org/789613004/diff/390007/components/password_manager/core/browser/password_manager_url_collection_experiment.cc File components/password_manager/core/browser/password_manager_url_collection_experiment.cc (right): https://codereview.chromium.org/789613004/diff/390007/components/password_manager/core/browser/password_manager_url_collection_experiment.cc#newcode35 components/password_manager/core/browser/password_manager_url_collection_experiment.cc:35: !base::StringToInt(params[kParamActivePeriodInDays], &days)) On 2014/12/12 16:38:50, asvitkine (OOO until Jan4) ...
6 years ago (2014-12-12 20:57:20 UTC) #46
melandory
https://codereview.chromium.org/789613004/diff/390007/components/password_manager/core/browser/password_manager_url_collection_experiment.cc File components/password_manager/core/browser/password_manager_url_collection_experiment.cc (right): https://codereview.chromium.org/789613004/diff/390007/components/password_manager/core/browser/password_manager_url_collection_experiment.cc#newcode35 components/password_manager/core/browser/password_manager_url_collection_experiment.cc:35: !base::StringToInt(params[kParamActivePeriodInDays], &days)) On 2014/12/12 16:38:50, asvitkine (OOO until Jan4) ...
6 years ago (2014-12-12 20:57:20 UTC) #47
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/789613004/470001
6 years ago (2014-12-12 20:58:20 UTC) #48
commit-bot: I haz the power
Committed patchset #19 (id:470001)
6 years ago (2014-12-12 21:51:10 UTC) #49
commit-bot: I haz the power
6 years ago (2014-12-12 21:51:46 UTC) #50
Message was sent while issue was closed.
Patchset 19 (id:??) landed as
https://crrev.com/c489fa833c62edf608a6ecbf553036fe9d7a3292
Cr-Commit-Position: refs/heads/master@{#308170}

Powered by Google App Engine
This is Rietveld 408576698