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

Issue 2621953003: [Extensions] Remove the prompt to re-enable app when visiting its site (Closed)

Created:
3 years, 11 months ago by Devlin
Modified:
3 years, 11 months ago
Reviewers:
lazyboy
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Extensions] Remove the prompt to re-enable app when visiting its site We currently prompt the user to re-enable a disabled hosted app if they visit the corresponding site. However, this can be really annoying, and confusing, since we don't offer much context on the choice, and don't persist the preference. This is offering relatively little value, and the site (if it wanted) could detect and inform the user that the app wasn't enabled, and give them sufficiently more context. However, we should keep this when the user visits a chrome-extension url - this is a much stronger signal, and we can't display anything else anyway (whereas visiting a hosted app's site still shows the site). This was never tested, so add some tests. BUG=678631 Review-Url: https://codereview.chromium.org/2621953003 Cr-Commit-Position: refs/heads/master@{#443439} Committed: https://chromium.googlesource.com/chromium/src/+/4b184ca093fba8aabfccdba8391c3676815beed9

Patch Set 1 #

Total comments: 2

Patch Set 2 : Keep for extensions #

Patch Set 3 : . #

Total comments: 2

Patch Set 4 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+166 lines, -6 lines) Patch
D chrome/browser/extensions/navigation_observer.h View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
D chrome/browser/extensions/navigation_observer.cc View 1 2 3 4 chunks +34 lines, -6 lines 0 comments Download
A chrome/browser/extensions/navigation_observer_browsertest.cc View 1 2 1 chunk +127 lines, -0 lines 0 comments Download
M chrome/test/BUILD.gn View 1 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 22 (14 generated)
Devlin
3 years, 11 months ago (2017-01-10 21:36:44 UTC) #7
lazyboy
https://codereview.chromium.org/2621953003/diff/1/chrome/browser/extensions/navigation_observer.cc File chrome/browser/extensions/navigation_observer.cc (left): https://codereview.chromium.org/2621953003/diff/1/chrome/browser/extensions/navigation_observer.cc#oldcode75 chrome/browser/extensions/navigation_observer.cc:75: if (extension_prefs->DidExtensionEscalatePermissions(extension->id())) { So the re-enable prompt we were ...
3 years, 11 months ago (2017-01-11 00:33:30 UTC) #8
Devlin
https://codereview.chromium.org/2621953003/diff/1/chrome/browser/extensions/navigation_observer.cc File chrome/browser/extensions/navigation_observer.cc (left): https://codereview.chromium.org/2621953003/diff/1/chrome/browser/extensions/navigation_observer.cc#oldcode75 chrome/browser/extensions/navigation_observer.cc:75: if (extension_prefs->DidExtensionEscalatePermissions(extension->id())) { On 2017/01/11 00:33:30, lazyboy wrote: > ...
3 years, 11 months ago (2017-01-12 17:25:44 UTC) #10
lazyboy
Thanks for writing the test! One typo I think. https://codereview.chromium.org/2621953003/diff/40001/chrome/browser/extensions/navigation_observer.cc File chrome/browser/extensions/navigation_observer.cc (right): https://codereview.chromium.org/2621953003/diff/40001/chrome/browser/extensions/navigation_observer.cc#newcode99 chrome/browser/extensions/navigation_observer.cc:99: ...
3 years, 11 months ago (2017-01-12 21:22:02 UTC) #11
Devlin
https://codereview.chromium.org/2621953003/diff/40001/chrome/browser/extensions/navigation_observer.cc File chrome/browser/extensions/navigation_observer.cc (right): https://codereview.chromium.org/2621953003/diff/40001/chrome/browser/extensions/navigation_observer.cc#newcode99 chrome/browser/extensions/navigation_observer.cc:99: if (!extension_prefs->DidExtensionEscalatePermissions(extension->id())) { On 2017/01/12 21:22:01, lazyboy wrote: > ...
3 years, 11 months ago (2017-01-12 23:01:04 UTC) #13
lazyboy
lgtm
3 years, 11 months ago (2017-01-12 23:02:20 UTC) #15
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/2621953003/60001
3 years, 11 months ago (2017-01-13 01:22:30 UTC) #19
commit-bot: I haz the power
3 years, 11 months ago (2017-01-13 01:36:18 UTC) #22
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/4b184ca093fba8aabfccdba8391c...

Powered by Google App Engine
This is Rietveld 408576698