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

Issue 406063002: Hook up runtime API to implement ExtensionRegistryObserver. (Closed)

Created:
6 years, 5 months ago by rpaquay
Modified:
6 years, 4 months ago
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Hook up runtime API to implement ExtensionRegistryObserver. * Also open the extension "uninstall URL" only when uninstall is user initiated. BUG=84556 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=285079

Patch Set 1 #

Total comments: 8

Patch Set 2 : Address code review feedback. #

Total comments: 2

Patch Set 3 : Address code review feedback. #

Total comments: 2

Patch Set 4 : Address code review feedback. #

Patch Set 5 : Fix clang build warning. #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+48 lines, -50 lines) Patch
M extensions/browser/api/runtime/runtime_api.h View 1 2 3 5 chunks +22 lines, -5 lines 0 comments Download
M extensions/browser/api/runtime/runtime_api.cc View 1 2 3 4 6 chunks +26 lines, -45 lines 1 comment Download

Messages

Total messages: 16 (0 generated)
rpaquay
This is the fix to show an extension's uninstall URL only when the uninstall action ...
6 years, 5 months ago (2014-07-21 19:46:47 UTC) #1
Devlin
https://codereview.chromium.org/406063002/diff/20001/extensions/browser/api/runtime/runtime_api.cc File extensions/browser/api/runtime/runtime_api.cc (right): https://codereview.chromium.org/406063002/diff/20001/extensions/browser/api/runtime/runtime_api.cc#newcode164 extensions/browser/api/runtime/runtime_api.cc:164: switch (type) { Let's make this DCHECK_EQ(chrome::NOTIFICATION_EXTENSIONS_READY, type) and ...
6 years, 5 months ago (2014-07-22 00:26:59 UTC) #2
rpaquay
PTAL https://codereview.chromium.org/406063002/diff/20001/extensions/browser/api/runtime/runtime_api.cc File extensions/browser/api/runtime/runtime_api.cc (right): https://codereview.chromium.org/406063002/diff/20001/extensions/browser/api/runtime/runtime_api.cc#newcode164 extensions/browser/api/runtime/runtime_api.cc:164: switch (type) { On 2014/07/22 00:26:58, Devlin wrote: ...
6 years, 5 months ago (2014-07-22 16:34:21 UTC) #3
Devlin
https://codereview.chromium.org/406063002/diff/20001/extensions/browser/api/runtime/runtime_api.cc File extensions/browser/api/runtime/runtime_api.cc (right): https://codereview.chromium.org/406063002/diff/20001/extensions/browser/api/runtime/runtime_api.cc#newcode164 extensions/browser/api/runtime/runtime_api.cc:164: switch (type) { On 2014/07/22 16:34:21, rpaquay wrote: > ...
6 years, 5 months ago (2014-07-22 22:21:12 UTC) #4
rpaquay
https://codereview.chromium.org/406063002/diff/20001/extensions/browser/api/runtime/runtime_api.cc File extensions/browser/api/runtime/runtime_api.cc (right): https://codereview.chromium.org/406063002/diff/20001/extensions/browser/api/runtime/runtime_api.cc#newcode164 extensions/browser/api/runtime/runtime_api.cc:164: switch (type) { On 2014/07/22 22:21:12, Devlin wrote: > ...
6 years, 5 months ago (2014-07-23 00:03:59 UTC) #5
Devlin
lgtm! https://codereview.chromium.org/406063002/diff/60001/extensions/browser/api/runtime/runtime_api.h File extensions/browser/api/runtime/runtime_api.h (right): https://codereview.chromium.org/406063002/diff/60001/extensions/browser/api/runtime/runtime_api.h#newcode39 extensions/browser/api/runtime/runtime_api.h:39: nit: Also forward-declare ExtensionRegistry.
6 years, 5 months ago (2014-07-23 15:26:44 UTC) #6
rpaquay
https://codereview.chromium.org/406063002/diff/60001/extensions/browser/api/runtime/runtime_api.h File extensions/browser/api/runtime/runtime_api.h (right): https://codereview.chromium.org/406063002/diff/60001/extensions/browser/api/runtime/runtime_api.h#newcode39 extensions/browser/api/runtime/runtime_api.h:39: On 2014/07/23 15:26:44, Devlin wrote: > nit: Also forward-declare ...
6 years, 5 months ago (2014-07-23 15:41:42 UTC) #7
rpaquay
The CQ bit was checked by rpaquay@chromium.org
6 years, 5 months ago (2014-07-23 15:41:46 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rpaquay@chromium.org/406063002/80001
6 years, 5 months ago (2014-07-23 15:43:38 UTC) #9
rpaquay
The CQ bit was checked by rpaquay@chromium.org
6 years, 5 months ago (2014-07-23 17:43:48 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rpaquay@chromium.org/406063002/100001
6 years, 5 months ago (2014-07-23 17:48:32 UTC) #11
commit-bot: I haz the power
Change committed as 285079
6 years, 5 months ago (2014-07-24 00:05:49 UTC) #12
not at google - send to devlin
https://codereview.chromium.org/406063002/diff/100001/extensions/browser/api/runtime/runtime_api.cc File extensions/browser/api/runtime/runtime_api.cc (right): https://codereview.chromium.org/406063002/diff/100001/extensions/browser/api/runtime/runtime_api.cc#newcode393 extensions/browser/api/runtime/runtime_api.cc:393: reason == UNINSTALL_REASON_MANAGEMENT_API)) { I'm reading through the various ...
6 years, 4 months ago (2014-07-30 02:35:01 UTC) #13
not at google - send to devlin
also is it possible to test the uninstall-from-sync case and make sure it doesn't fire ...
6 years, 4 months ago (2014-07-30 02:38:02 UTC) #14
not at google - send to devlin
That browser test for the uninstall URL is darn awkward the way it sets up ...
6 years, 4 months ago (2014-07-30 02:46:27 UTC) #15
not at google - send to devlin
6 years, 4 months ago (2014-07-30 02:47:24 UTC) #16
Message was sent while issue was closed.
On 2014/07/30 02:46:27, kalman wrote:
> That browser test for the uninstall URL is darn awkward the way it sets up a
> whole extension just to check that a URL was opened.
> 
> It's also fairly limited. It could do with at least a sync test, but also
> testing that various uninstall URLs can't be set, like mailto:, javascript:,
> etc.
> 
> and that doesn't appear to be implemented at all. No URL validation is
> implemented:
>
https://code.google.com/p/chromium/codesearch#chromium/src/extensions/browser...

I looked in the wrong place, it does check is_valid(). But this will include
every possible URL.

https://code.google.com/p/chromium/codesearch#chromium/src/extensions/browser...

Powered by Google App Engine
This is Rietveld 408576698