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

Issue 2623033006: [Re-landing] Migrate external protocol prefs from local state to profiles (Closed)

Created:
3 years, 11 months ago by ramyasharma
Modified:
3 years, 10 months ago
CC:
chromium-reviews, jdonnelly+watch_chromium.org, sky
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Re-landing] Migrate external protocol prefs from local state to profiles. Moves external protocol handler state from local state to per-profile. This ensures that external protocol settings maybe distinct per-profile and simplifies the implementation of editing UI. The local state data is migrated to the currently active profile and then deleted. This may result in some loss for people who use multiple profiles; However, they will be presented with an external protocol dialog the next time they try and open a formerly remembered scheme. It also resets the state of all schemes which have been permanently blocked by users (and are not part of the pre-populated set of schemes). These schemes will prompt the user the next time they are accessed. We do this because: a) there is currently no UI to edit external handlers, so users cannot recover from permanently silencing a dialog. b) local state is per Chrome instance, meaning that users have to wipe their entire Chrome data dir (or edit the local state JSON file) to recover. BUG=457254, 62799 TBR=sky@chromium.org Review-Url: https://codereview.chromium.org/2623033006 Cr-Commit-Position: refs/heads/master@{#446959} Committed: https://chromium.googlesource.com/chromium/src/+/03dfa11bd46784b21cc75aa8cef21cb81435722c Re-landing as the test that caused this cl to be reverted has been disabled due to being flaky : https://bugs.chromium.org/p/chromium/issues/detail?id=686803 Review-Url: https://codereview.chromium.org/2623033006 Cr-Commit-Position: refs/heads/master@{#448213} Committed: https://chromium.googlesource.com/chromium/src/+/2c618e171bf9c6fbe4ffa58e59d67c826491893d

Patch Set 1 : a #

Total comments: 35

Patch Set 2 : a #

Total comments: 2

Patch Set 3 : a #

Patch Set 4 : a #

Total comments: 4

Patch Set 5 : a #

Patch Set 6 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+160 lines, -52 lines) Patch
M chrome/browser/autocomplete/chrome_autocomplete_scheme_classifier.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/chrome_site_per_process_browsertest.cc View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/external_protocol/external_protocol_handler.h View 1 2 3 4 3 chunks +7 lines, -3 lines 0 comments Download
M chrome/browser/external_protocol/external_protocol_handler.cc View 1 2 3 4 6 chunks +51 lines, -30 lines 0 comments Download
M chrome/browser/external_protocol/external_protocol_handler_unittest.cc View 1 2 3 4 5 chunks +72 lines, -3 lines 0 comments Download
M chrome/browser/prerender/prerender_test_utils.cc View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/profiles/profile.cc View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/external_protocol_dialog_cocoa.mm View 1 2 3 4 3 chunks +8 lines, -4 lines 0 comments Download
M chrome/browser/ui/external_protocol_dialog_delegate.cc View 1 2 3 4 2 chunks +16 lines, -7 lines 0 comments Download

Messages

Total messages: 119 (89 generated)
ramyasharma
3 years, 11 months ago (2017-01-19 06:11:20 UTC) #14
dominickn
Thanks! I mostly have style related comments in this pass. Also: please change the subject ...
3 years, 11 months ago (2017-01-19 07:01:22 UTC) #15
ramyasharma
https://codereview.chromium.org/2623033006/diff/180001/chrome/browser/external_protocol/external_protocol_handler.cc File chrome/browser/external_protocol/external_protocol_handler.cc (right): https://codereview.chromium.org/2623033006/diff/180001/chrome/browser/external_protocol/external_protocol_handler.cc#newcode152 chrome/browser/external_protocol/external_protocol_handler.cc:152: // TODO(pkasting): This kind of thing should go in ...
3 years, 11 months ago (2017-01-20 04:04:45 UTC) #19
dominickn
lgtm - thanks Ramya! On Monday we'll figure out the right OWNERs to send this ...
3 years, 11 months ago (2017-01-20 05:07:46 UTC) #21
ramyasharma
Adding meacer@ for chrome/browser/external_protocol/* tapted@ for API change in chrome/browser/ui/cocoa/external_protocol_dialog.mm anthonyvd@ for chrome/browser/profiles/profile.cc msw@ for ...
3 years, 11 months ago (2017-01-23 04:08:37 UTC) #28
tapted
external_protocol_dialog.mm lgtm with the following (I didn't look closely at the rest). https://codereview.chromium.org/2623033006/diff/220001/chrome/browser/ui/cocoa/external_protocol_dialog.mm File chrome/browser/ui/cocoa/external_protocol_dialog.mm ...
3 years, 11 months ago (2017-01-23 05:07:54 UTC) #29
ramyasharma
Thanks tapted@. https://codereview.chromium.org/2623033006/diff/220001/chrome/browser/ui/cocoa/external_protocol_dialog.mm File chrome/browser/ui/cocoa/external_protocol_dialog.mm (right): https://codereview.chromium.org/2623033006/diff/220001/chrome/browser/ui/cocoa/external_protocol_dialog.mm#newcode127 chrome/browser/ui/cocoa/external_protocol_dialog.mm:127: content::WebContents* web_contents = On 2017/01/23 05:07:54, tapted ...
3 years, 11 months ago (2017-01-23 06:41:26 UTC) #30
msw
external_protocol_dialog_delegate.cc lgtm
3 years, 11 months ago (2017-01-23 07:30:17 UTC) #34
anthonyvd
profile.cc lgtm
3 years, 11 months ago (2017-01-23 14:20:49 UTC) #35
ramyasharma
Adding davidben@chromium.org for chrome/browser/prerender/prerender_test_utils.cc
3 years, 11 months ago (2017-01-24 05:23:19 UTC) #49
ramyasharma
davidben@chromium.org: Please review changes in chrome/browser/prerender/prerender_test_utils.cc
3 years, 11 months ago (2017-01-24 05:24:13 UTC) #51
ramyasharma
alexmos@chromium.org Please review changes in chrome/browser/chrome_site_per_process_browsertest.cc
3 years, 11 months ago (2017-01-24 06:50:42 UTC) #59
ramyasharma
alexmos@chromium.org: Please review changes in chrome/browser/chrome_site_per_process_browsertest.cc
3 years, 11 months ago (2017-01-24 06:51:21 UTC) #61
davidben
prerender lgtm
3 years, 11 months ago (2017-01-24 16:40:12 UTC) #62
alexmos
chrome_site_per_process_browsertest.cc LGTM
3 years, 11 months ago (2017-01-24 17:04:13 UTC) #63
meacer
Lgtm https://codereview.chromium.org/2623033006/diff/320001/chrome/browser/external_protocol/external_protocol_handler_unittest.cc File chrome/browser/external_protocol/external_protocol_handler_unittest.cc (right): https://codereview.chromium.org/2623033006/diff/320001/chrome/browser/external_protocol/external_protocol_handler_unittest.cc#newcode213 chrome/browser/external_protocol/external_protocol_handler_unittest.cc:213: ExternalProtocolHandler::GetBlockState("tel", profile_.get()); nit: Indentation seems off here (2 ...
3 years, 11 months ago (2017-01-25 22:15:07 UTC) #64
ramyasharma
Thanks Mustafa. https://codereview.chromium.org/2623033006/diff/320001/chrome/browser/external_protocol/external_protocol_handler_unittest.cc File chrome/browser/external_protocol/external_protocol_handler_unittest.cc (right): https://codereview.chromium.org/2623033006/diff/320001/chrome/browser/external_protocol/external_protocol_handler_unittest.cc#newcode213 chrome/browser/external_protocol/external_protocol_handler_unittest.cc:213: ExternalProtocolHandler::GetBlockState("tel", profile_.get()); On 2017/01/25 22:15:07, Mustafa Emre ...
3 years, 10 months ago (2017-01-30 00:16:45 UTC) #65
ramyasharma
TBR sky@ for chrome/browser/autocomplete/chrome_autocomplete_scheme_classifier.cc (minor API change)
3 years, 10 months ago (2017-01-30 00:25:14 UTC) #68
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/2623033006/340001
3 years, 10 months ago (2017-01-30 00:25:45 UTC) #71
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_compile_dbg_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_compile_dbg_ng/builds/346390)
3 years, 10 months ago (2017-01-30 00:27:42 UTC) #73
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/2623033006/380001
3 years, 10 months ago (2017-01-30 04:33:29 UTC) #82
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/353000)
3 years, 10 months ago (2017-01-30 04:40:01 UTC) #84
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/2623033006/380001
3 years, 10 months ago (2017-01-30 04:47:09 UTC) #87
commit-bot: I haz the power
Committed patchset #5 (id:380001) as https://chromium.googlesource.com/chromium/src/+/03dfa11bd46784b21cc75aa8cef21cb81435722c
3 years, 10 months ago (2017-01-30 04:51:53 UTC) #90
tsergeant
A revert of this CL (patchset #5 id:380001) has been created in https://codereview.chromium.org/2660333004/ by tsergeant@chromium.org. ...
3 years, 10 months ago (2017-01-31 00:45:44 UTC) #91
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/2623033006/380001
3 years, 10 months ago (2017-02-06 02:25:29 UTC) #94
commit-bot: I haz the power
Try jobs failed on following builders: ios-device on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device/builds/147567) ios-simulator on master.tryserver.chromium.mac (JOB_FAILED, ...
3 years, 10 months ago (2017-02-06 02:27:25 UTC) #96
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/2623033006/440001
3 years, 10 months ago (2017-02-06 03:55:13 UTC) #113
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/2623033006/440001
3 years, 10 months ago (2017-02-06 03:58:34 UTC) #116
commit-bot: I haz the power
3 years, 10 months ago (2017-02-06 05:42:23 UTC) #119
Message was sent while issue was closed.
Committed patchset #6 (id:440001) as
https://chromium.googlesource.com/chromium/src/+/2c618e171bf9c6fbe4ffa58e59d6...

Powered by Google App Engine
This is Rietveld 408576698