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

Issue 2452773002: [Extensions] Limit Extension WebUI (Closed)

Created:
4 years, 1 month ago by Devlin
Modified:
4 years, 1 month ago
Reviewers:
Dan Beam, sky
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org, nasko
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Extensions] Limit ExtensionWebUI The bookmark manager needs a WebUI controller in order to change the transition type for links. However, right now, we're creating WebUI for every single extension. Instead, *only* create WebUI for the bookmark manager. Note that the ExtensionWebUI class is currently used for both this WebUI and for chrome url overrides, which are very separate concepts and should be split up, but I'll save that for a later CL. BUG=659798 Committed: https://crrev.com/f9bc386d7f73366b45cb85848d27b4343facf45d Cr-Commit-Position: refs/heads/master@{#428747}

Patch Set 1 : done #

Patch Set 2 : Add TODOs #

Total comments: 7

Patch Set 3 : Dan's #

Total comments: 2

Patch Set 4 : add missing include #

Patch Set 5 : Test fix #

Total comments: 2

Patch Set 6 : sky's #

Unified diffs Side-by-side diffs Delta from patch set Stats (+38 lines, -36 lines) Patch
M chrome/browser/extensions/extension_web_ui.h View 1 2 3 4 5 5 chunks +17 lines, -4 lines 0 comments Download
M chrome/browser/extensions/extension_web_ui.cc View 1 2 3 4 5 2 chunks +17 lines, -11 lines 0 comments Download
M chrome/browser/ui/views/bookmarks/bookmark_context_menu_unittest.cc View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/chrome_web_ui_controller_factory.cc View 3 chunks +2 lines, -19 lines 0 comments Download

Messages

Total messages: 47 (35 generated)
Devlin
Dan, can you take a look? (Note that this is not WebUI in the sense ...
4 years, 1 month ago (2016-10-26 21:29:48 UTC) #19
Dan Beam
https://codereview.chromium.org/2452773002/diff/60001/chrome/browser/extensions/extension_web_ui.cc File chrome/browser/extensions/extension_web_ui.cc (right): https://codereview.chromium.org/2452773002/diff/60001/chrome/browser/extensions/extension_web_ui.cc#newcode339 chrome/browser/extensions/extension_web_ui.cc:339: if (!browser_context) can we really not have a browser_context ...
4 years, 1 month ago (2016-10-26 21:44:19 UTC) #20
Devlin
https://codereview.chromium.org/2452773002/diff/60001/chrome/browser/extensions/extension_web_ui.cc File chrome/browser/extensions/extension_web_ui.cc (right): https://codereview.chromium.org/2452773002/diff/60001/chrome/browser/extensions/extension_web_ui.cc#newcode339 chrome/browser/extensions/extension_web_ui.cc:339: if (!browser_context) On 2016/10/26 21:44:19, Dan Beam wrote: > ...
4 years, 1 month ago (2016-10-26 21:54:50 UTC) #21
Devlin
dbeam - friendly ping.
4 years, 1 month ago (2016-10-28 21:46:28 UTC) #22
Dan Beam
lgtm https://codereview.chromium.org/2452773002/diff/80001/chrome/browser/extensions/extension_web_ui.h File chrome/browser/extensions/extension_web_ui.h (right): https://codereview.chromium.org/2452773002/diff/80001/chrome/browser/extensions/extension_web_ui.h#newcode10 chrome/browser/extensions/extension_web_ui.h:10: nit: #include "base/macros.h" for DISALLOW_COPY_AND_ASSIGN
4 years, 1 month ago (2016-10-28 22:26:53 UTC) #23
Devlin
+sky@ - Scott, can you take a look at the bookmark_context_menu_unittest.cc update? (see comment in ...
4 years, 1 month ago (2016-10-29 17:42:24 UTC) #29
sky
LGTM https://codereview.chromium.org/2452773002/diff/120001/chrome/browser/extensions/extension_web_ui.h File chrome/browser/extensions/extension_web_ui.h (right): https://codereview.chromium.org/2452773002/diff/120001/chrome/browser/extensions/extension_web_ui.h#newcode41 chrome/browser/extensions/extension_web_ui.h:41: // Returns true if the given url requires ...
4 years, 1 month ago (2016-10-31 15:11:54 UTC) #34
Devlin
https://codereview.chromium.org/2452773002/diff/120001/chrome/browser/extensions/extension_web_ui.h File chrome/browser/extensions/extension_web_ui.h (right): https://codereview.chromium.org/2452773002/diff/120001/chrome/browser/extensions/extension_web_ui.h#newcode41 chrome/browser/extensions/extension_web_ui.h:41: // Returns true if the given url requires WebUI ...
4 years, 1 month ago (2016-10-31 16:59:26 UTC) #39
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/2452773002/140001
4 years, 1 month ago (2016-10-31 16:59:49 UTC) #42
commit-bot: I haz the power
Committed patchset #6 (id:140001)
4 years, 1 month ago (2016-10-31 17:04:54 UTC) #44
commit-bot: I haz the power
Patchset 6 (id:??) landed as https://crrev.com/f9bc386d7f73366b45cb85848d27b4343facf45d Cr-Commit-Position: refs/heads/master@{#428747}
4 years, 1 month ago (2016-10-31 17:16:10 UTC) #46
xidachen
4 years, 1 month ago (2016-10-31 19:21:31 UTC) #47
Message was sent while issue was closed.
A revert of this CL (patchset #6 id:140001) has been created in
https://codereview.chromium.org/2463153003/ by xidachen@chromium.org.

The reason for reverting is: Suspect causing failure:
https://build.chromium.org/p/chromium.win/builders/Win7%20Tests%20%28dbg%29%2....

Powered by Google App Engine
This is Rietveld 408576698