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

Issue 2501783003: MD Settings: Hook up import data dialog. (Closed)

Created:
4 years, 1 month ago by dpapad
Modified:
3 years, 9 months ago
Reviewers:
tommycli, gab, Dan Beam
CC:
arv+watch_chromium.org, chromium-reviews, dbeam+watch-settings_chromium.org, Dan Beam, michaelpg+watch-md-settings_chromium.org, michaelpg+watch-md-ui_chromium.org, stevenjb+watch-md-settings_chromium.org, tfarina
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

MD Settings: Hook up import data dialog. BUG=659259 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation Committed: https://crrev.com/411c9f114fd32cde3b27382c78fdaac5d4e0365f Cr-Commit-Position: refs/heads/master@{#432753}

Patch Set 1 : Fix compiler #

Patch Set 2 : Nits. #

Patch Set 3 : Fix disabling logic. #

Total comments: 27

Patch Set 4 : Address comments, remove iron-change listener. #

Total comments: 8

Patch Set 5 : Fix typo #

Patch Set 6 : Use PrefsBehavior to access prefs in JS. #

Patch Set 7 : Fix typo. #

Total comments: 2

Messages

Total messages: 38 (23 generated)
dpapad
See short video (40sec), showing all expected interactions with the dialog at https://vid.me/CAAx. Sending this ...
4 years, 1 month ago (2016-11-16 00:34:38 UTC) #12
tommycli
lgtm - basically all nits below: https://codereview.chromium.org/2501783003/diff/130001/chrome/app/settings_strings.grdp File chrome/app/settings_strings.grdp (right): https://codereview.chromium.org/2501783003/diff/130001/chrome/app/settings_strings.grdp#newcode2192 chrome/app/settings_strings.grdp:2192: <message name="IDS_SETTINGS_IMPORT_READY" desc="Message ...
4 years, 1 month ago (2016-11-16 17:23:53 UTC) #15
dpapad
https://codereview.chromium.org/2501783003/diff/130001/chrome/app/settings_strings.grdp File chrome/app/settings_strings.grdp (right): https://codereview.chromium.org/2501783003/diff/130001/chrome/app/settings_strings.grdp#newcode2192 chrome/app/settings_strings.grdp:2192: <message name="IDS_SETTINGS_IMPORT_READY" desc="Message displayed after settings and bookmarks have ...
4 years, 1 month ago (2016-11-16 21:33:02 UTC) #16
tommycli
https://codereview.chromium.org/2501783003/diff/130001/chrome/browser/resources/settings/people_page/import_data_dialog.html File chrome/browser/resources/settings/people_page/import_data_dialog.html (right): https://codereview.chromium.org/2501783003/diff/130001/chrome/browser/resources/settings/people_page/import_data_dialog.html#newcode95 chrome/browser/resources/settings/people_page/import_data_dialog.html:95: <paper-spinner On 2016/11/16 21:33:02, dpapad wrote: > On 2016/11/16 ...
4 years, 1 month ago (2016-11-16 21:43:40 UTC) #17
Dan Beam
https://codereview.chromium.org/2501783003/diff/150001/chrome/browser/resources/settings/people_page/import_data_dialog.js File chrome/browser/resources/settings/people_page/import_data_dialog.js (right): https://codereview.chromium.org/2501783003/diff/150001/chrome/browser/resources/settings/people_page/import_data_dialog.js#newcode80 chrome/browser/resources/settings/people_page/import_data_dialog.js:80: !(this.prefs['import_history'].value && this.selected_.history) && On 2016/11/16 21:33:02, dpapad wrote: ...
4 years, 1 month ago (2016-11-16 21:45:15 UTC) #18
dpapad
https://codereview.chromium.org/2501783003/diff/150001/chrome/browser/resources/settings/people_page/import_data_dialog.js File chrome/browser/resources/settings/people_page/import_data_dialog.js (right): https://codereview.chromium.org/2501783003/diff/150001/chrome/browser/resources/settings/people_page/import_data_dialog.js#newcode80 chrome/browser/resources/settings/people_page/import_data_dialog.js:80: !(this.prefs['import_history'].value && this.selected_.history) && On 2016/11/16 at 21:45:15, Dan ...
4 years, 1 month ago (2016-11-16 21:47:10 UTC) #19
dpapad
https://codereview.chromium.org/2501783003/diff/150001/chrome/browser/resources/settings/people_page/import_data_dialog.js File chrome/browser/resources/settings/people_page/import_data_dialog.js (right): https://codereview.chromium.org/2501783003/diff/150001/chrome/browser/resources/settings/people_page/import_data_dialog.js#newcode80 chrome/browser/resources/settings/people_page/import_data_dialog.js:80: !(this.prefs['import_history'].value && this.selected_.history) && > Tried this locally and ...
4 years, 1 month ago (2016-11-16 21:54:08 UTC) #20
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/2501783003/210001
4 years, 1 month ago (2016-11-17 00:00:29 UTC) #25
commit-bot: I haz the power
Try jobs failed on following builders: android_arm64_dbg_recipe on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_arm64_dbg_recipe/builds/165364)
4 years, 1 month ago (2016-11-17 02:11:20 UTC) #27
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/2501783003/210001
4 years, 1 month ago (2016-11-17 02:27:21 UTC) #29
commit-bot: I haz the power
Try jobs failed on following builders: android_arm64_dbg_recipe on master.tryserver.chromium.android (JOB_TIMED_OUT, no build URL)
4 years, 1 month ago (2016-11-17 04:30:04 UTC) #31
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/2501783003/210001
4 years, 1 month ago (2016-11-17 04:41:09 UTC) #33
commit-bot: I haz the power
Committed patchset #7 (id:210001)
4 years, 1 month ago (2016-11-17 05:06:31 UTC) #34
commit-bot: I haz the power
Patchset 7 (id:??) landed as https://crrev.com/411c9f114fd32cde3b27382c78fdaac5d4e0365f Cr-Commit-Position: refs/heads/master@{#432753}
4 years, 1 month ago (2016-11-17 05:08:43 UTC) #36
gab
3 years, 9 months ago (2017-02-23 20:57:30 UTC) #38
Message was sent while issue was closed.
The prefs hooks in this CL are undesired, see below, thanks.

https://codereview.chromium.org/2501783003/diff/210001/chrome/browser/ui/webu...
File chrome/browser/ui/webui/settings/settings_import_data_handler.cc (left):

https://codereview.chromium.org/2501783003/diff/210001/chrome/browser/ui/webu...
chrome/browser/ui/webui/settings/settings_import_data_handler.cc:133: if
(args->GetString(4, &string_value) && string_value == "true") {
Looks like import_data_overlay.js still has code to send these args even though
they're no longer honored...

            String($('import-browsers').selectedIndex),
            String($('import-history').checked),
            String($('import-favorites').checked),
            String($('import-passwords').checked),
            String($('import-search').checked),
            String($('import-autofill-form-data').checked)]);

that confused me when trying to figure out this code, please clean up.

https://codereview.chromium.org/2501783003/diff/210001/chrome/browser/ui/webu...
File chrome/browser/ui/webui/settings/settings_import_data_handler.cc (right):

https://codereview.chromium.org/2501783003/diff/210001/chrome/browser/ui/webu...
chrome/browser/ui/webui/settings/settings_import_data_handler.cc:121: if
(prefs->GetBoolean(prefs::kImportAutofillFormData))
Hooking onto those prefs is wrong. Those are driving first run auto import.
Policies set for those shouldn't drive the import UI and even less honor first
run auto import's policies...

If you want prefs, you'll need new ones.

But I don't even think that's necessary... this UI is expected to be used only
once per user and I don't think the checkboxes have to be sticky, they're not
settings on their own, they're controls for a manual import and each import is
an independent action.

Filed http://crbug.com/695611, please address.

Powered by Google App Engine
This is Rietveld 408576698