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

Issue 2705113005: Update AutoImport to import nothing by default (in absence of policy and master_prefs). (Closed)

Created:
3 years, 10 months ago by gab
Modified:
3 years, 9 months ago
CC:
chromium-reviews, grt+watch_chromium.org, pennymac+watch_chromium.org, asvitkine+watch_chromium.org, wfh+watch_chromium.org, Eli Wald
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Update AutoImport to import nothing by default (in absence of policy and master_prefs). As decided in conclusion of experiment https://crbug.com/555550#c114 This simplifies the code a lot, dropping all the weird defaults accrued over the years. AutoImport is now strictly driven by policies + master_prefs. Also deprecated the distribution entries for the import prefs which were duplicates of the prefs:: entries... added legacy mapping in one place in code and it then simplifies the rest of the logic (the kDistroDict is never registered so this was somewhat of a pain). The new code also makes it trivial to fix issue 601697 :) -- done! (i.e. added support for auto import of autofill form data and saved passwords although actual support will depend on the support of the importer for the imported browser -- which is the same as the support from a manual import). BUG=555550, 601697 Review-Url: https://codereview.chromium.org/2705113005 Cr-Commit-Position: refs/heads/master@{#458853} Committed: https://chromium.googlesource.com/chromium/src/+/dac09c03b9f3cc44adf71e8836f6bebabec7a61d

Patch Set 1 #

Total comments: 19

Patch Set 2 : review:grt#7 #

Total comments: 12

Patch Set 3 : rebase on r452611 #

Patch Set 4 : rebase on pre-CL and nits #

Patch Set 5 : update dependency and further cleanup #

Patch Set 6 : update dependency #

Patch Set 7 : update dependency #

Total comments: 2

Patch Set 8 : rebase on r458058 and re-add extern keyword in first_run_browsertest.cc #

Patch Set 9 : Move kImport pref registration from ui to first_run #

Total comments: 3

Patch Set 10 : extern constexpr -> extern const? #

Patch Set 11 : Move registration to !OS_ANDROID per first_run.cc's GN rules #

Total comments: 4

Patch Set 12 : update comment in chrome_browser_main.cc #

Unified diffs Side-by-side diffs Delta from patch set Stats (+165 lines, -282 lines) Patch
M chrome/browser/chrome_browser_main.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +4 lines, -22 lines 0 comments Download
M chrome/browser/first_run/first_run.h View 1 2 3 4 5 6 7 8 4 chunks +12 lines, -11 lines 0 comments Download
M chrome/browser/first_run/first_run.cc View 1 2 3 4 5 6 7 8 6 chunks +63 lines, -180 lines 0 comments Download
M chrome/browser/first_run/first_run_browsertest.cc View 2 3 4 5 6 7 8 9 2 chunks +24 lines, -1 line 0 comments Download
M chrome/browser/prefs/browser_prefs.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/browser_ui_prefs.cc View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -6 lines 0 comments Download
M chrome/common/chrome_features.h View 1 2 3 4 5 6 7 1 chunk +0 lines, -1 line 0 comments Download
M chrome/common/chrome_features.cc View 1 2 3 4 5 6 7 1 chunk +0 lines, -4 lines 0 comments Download
M chrome/installer/util/master_preferences.h View 1 2 3 4 5 6 7 2 chunks +7 lines, -5 lines 0 comments Download
M chrome/installer/util/master_preferences.cc View 1 2 3 4 5 6 7 1 chunk +23 lines, -0 lines 0 comments Download
M chrome/installer/util/master_preferences_constants.h View 1 2 3 1 chunk +0 lines, -8 lines 0 comments Download
M chrome/installer/util/master_preferences_constants.cc View 1 2 3 1 chunk +0 lines, -4 lines 0 comments Download
M chrome/installer/util/master_preferences_unittest.cc View 1 2 3 4 5 6 7 8 chunks +30 lines, -25 lines 0 comments Download
M testing/variations/fieldtrial_testing_config.json View 1 2 3 4 5 6 7 1 chunk +0 lines, -15 lines 0 comments Download
M tools/metrics/actions/actions.xml View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 98 (70 generated)
gab
Sir Greg PTaL =D!
3 years, 10 months ago (2017-02-22 21:59:03 UTC) #2
grt (UTC plus 2)
nice cleanup! https://codereview.chromium.org/2705113005/diff/1/chrome/browser/first_run/first_run.cc File chrome/browser/first_run/first_run.cc (right): https://codereview.chromium.org/2705113005/diff/1/chrome/browser/first_run/first_run.cc#newcode8 chrome/browser/first_run/first_run.cc:8: #include <memory> nit: still needed for std::unique_ptr ...
3 years, 10 months ago (2017-02-23 14:05:49 UTC) #7
gab
+ewald : this CL brings a slight change in behavior. Previously there were two import ...
3 years, 10 months ago (2017-02-23 20:37:41 UTC) #14
gab
On 2017/02/23 20:37:41, gab wrote: > +ewald : this CL brings a slight change in ...
3 years, 10 months ago (2017-02-23 20:40:54 UTC) #17
grt (UTC plus 2)
mostly just nits at this point. i agree that the use of prefs to drive ...
3 years, 10 months ago (2017-02-23 21:19:01 UTC) #21
gab
On 2017/02/23 21:19:01, grt (UTC plus 1) wrote: > mostly just nits at this point. ...
3 years, 10 months ago (2017-02-23 23:27:53 UTC) #26
Eli Wald
On 2017/02/23 20:40:54, gab wrote: > On 2017/02/23 20:37:41, gab wrote: > > +ewald : ...
3 years, 10 months ago (2017-02-24 01:21:36 UTC) #42
grt (UTC plus 2)
this is awesomesauce. lgtm after the UI is fixed so that it doesn't depend on ...
3 years, 9 months ago (2017-02-24 20:47:48 UTC) #45
pastarmovj
lgtm. Thanks for doing this!
3 years, 9 months ago (2017-03-02 06:35:58 UTC) #47
gab
@rkaplow for actions.xml 1-liner
3 years, 9 months ago (2017-03-21 22:10:45 UTC) #49
gab
On 2017/02/24 20:47:48, grt (UTC plus 1) wrote: > this is awesomesauce. lgtm after the ...
3 years, 9 months ago (2017-03-21 22:24:47 UTC) #53
gab
https://codereview.chromium.org/2705113005/diff/150001/chrome/browser/first_run/first_run_browsertest.cc File chrome/browser/first_run/first_run_browsertest.cc (right): https://codereview.chromium.org/2705113005/diff/150001/chrome/browser/first_run/first_run_browsertest.cc#newcode171 chrome/browser/first_run/first_run_browsertest.cc:171: typedef FirstRunMasterPrefsBrowserTestT<kImportDefault> On 2017/02/24 20:47:48, grt (UTC plus 1) ...
3 years, 9 months ago (2017-03-21 22:25:07 UTC) #55
gab
+msw for prefs registration move away from chrome\browser\ui\browser_ui_prefs.cc (to first_run.cc)
3 years, 9 months ago (2017-03-21 22:28:12 UTC) #60
Alexei Svitkine (slow)
actions.xml lgtm
3 years, 9 months ago (2017-03-21 22:30:43 UTC) #62
msw
https://codereview.chromium.org/2705113005/diff/210001/chrome/browser/first_run/first_run.cc File chrome/browser/first_run/first_run.cc (right): https://codereview.chromium.org/2705113005/diff/210001/chrome/browser/first_run/first_run.cc#newcode532 chrome/browser/first_run/first_run.cc:532: registry->RegisterBooleanPref(prefs::kImportAutofillFormData, false); q: Was changing the default true->false for ...
3 years, 9 months ago (2017-03-21 22:41:29 UTC) #65
msw
c/b/ui and the new first_run::RegisterProfilePrefs lgtm https://codereview.chromium.org/2705113005/diff/210001/chrome/browser/first_run/first_run.cc File chrome/browser/first_run/first_run.cc (right): https://codereview.chromium.org/2705113005/diff/210001/chrome/browser/first_run/first_run.cc#newcode532 chrome/browser/first_run/first_run.cc:532: registry->RegisterBooleanPref(prefs::kImportAutofillFormData, false); On ...
3 years, 9 months ago (2017-03-21 22:43:57 UTC) #66
gab
@msw: thanks, see below for details https://codereview.chromium.org/2705113005/diff/210001/chrome/browser/first_run/first_run.cc File chrome/browser/first_run/first_run.cc (right): https://codereview.chromium.org/2705113005/diff/210001/chrome/browser/first_run/first_run.cc#newcode532 chrome/browser/first_run/first_run.cc:532: registry->RegisterBooleanPref(prefs::kImportAutofillFormData, false); On ...
3 years, 9 months ago (2017-03-21 22:53:41 UTC) #67
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/2705113005/230001
3 years, 9 months ago (2017-03-22 16:33:17 UTC) #74
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/2705113005/250001
3 years, 9 months ago (2017-03-22 16:39:33 UTC) #78
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/391666)
3 years, 9 months ago (2017-03-22 16:49:11 UTC) #80
gab
+Nico for chrome_browser_main.cc (cleans up after an experiment)
3 years, 9 months ago (2017-03-22 17:50:13 UTC) #82
Nico
https://codereview.chromium.org/2705113005/diff/250001/chrome/browser/chrome_browser_main.cc File chrome/browser/chrome_browser_main.cc (right): https://codereview.chromium.org/2705113005/diff/250001/chrome/browser/chrome_browser_main.cc#newcode1684 chrome/browser/chrome_browser_main.cc:1684: first_run::AutoImport(profile_, master_prefs_->import_bookmarks_path); CL description says "Disable AutoImport by default", ...
3 years, 9 months ago (2017-03-22 18:09:37 UTC) #85
gab
https://codereview.chromium.org/2705113005/diff/250001/chrome/browser/chrome_browser_main.cc File chrome/browser/chrome_browser_main.cc (right): https://codereview.chromium.org/2705113005/diff/250001/chrome/browser/chrome_browser_main.cc#newcode1684 chrome/browser/chrome_browser_main.cc:1684: first_run::AutoImport(profile_, master_prefs_->import_bookmarks_path); On 2017/03/22 18:09:37, Nico wrote: > CL ...
3 years, 9 months ago (2017-03-22 18:55:49 UTC) #89
Nico
https://codereview.chromium.org/2705113005/diff/250001/chrome/browser/chrome_browser_main.cc File chrome/browser/chrome_browser_main.cc (right): https://codereview.chromium.org/2705113005/diff/250001/chrome/browser/chrome_browser_main.cc#newcode1684 chrome/browser/chrome_browser_main.cc:1684: first_run::AutoImport(profile_, master_prefs_->import_bookmarks_path); On 2017/03/22 18:55:49, gab wrote: > On ...
3 years, 9 months ago (2017-03-22 18:59:45 UTC) #90
Nico
Other than that, lgtm. You're losing the call to IsEnterpriseManaged(); I'm assuming enterprise folks are ...
3 years, 9 months ago (2017-03-22 19:02:16 UTC) #91
gab
On 2017/03/22 19:02:16, Nico wrote: > Other than that, lgtm. You're losing the call to ...
3 years, 9 months ago (2017-03-22 19:06:26 UTC) #92
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/2705113005/270001
3 years, 9 months ago (2017-03-22 19:07:20 UTC) #95
commit-bot: I haz the power
3 years, 9 months ago (2017-03-22 20:01:09 UTC) #98
Message was sent while issue was closed.
Committed patchset #12 (id:270001) as
https://chromium.googlesource.com/chromium/src/+/dac09c03b9f3cc44adf71e8836f6...

Powered by Google App Engine
This is Rietveld 408576698