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

Issue 2468673003: [Extensions] Remove ExtensionWebUI (Closed)

Created:
4 years, 1 month ago by Devlin
Modified:
4 years, 1 month ago
CC:
chromium-reviews, extensions-reviews_chromium.org, creis+watch_chromium.org, tfarina, nasko+codewatch_chromium.org, jam, darin-cc_chromium.org, chromium-apps-reviews_chromium.org, Dan Beam
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Extensions] Remove ExtensionWebUI ExtensionWebUI only did two things: - Set the link transition type for the bookmark manager to PAGE_TRANSITION_AUTO_BOOKMARK. - Instantiated the BookmarkManagerPrivateDragEventRouter. Neither of these things should require WebUI, and having extension WebContents have WebUI is bad. Instead, handle the link transition in OverrideOpenUrlParams (as well as modifying the referrer and the renderer-initiated, as we currently do for WebUI navigations), and make the BookmarkManagerPrivateDragEventRouter a WebContentsUserData instantiated from extensions::TabHelper. BUG=659798 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation Committed: https://crrev.com/a32a0900c104b2143e6462febc81e6900dbd2104 Cr-Commit-Position: refs/heads/master@{#430940}

Patch Set 1 #

Patch Set 2 : rename #

Patch Set 3 : unrename #

Patch Set 4 : maybefix #

Total comments: 8

Patch Set 5 : Charlie's #

Total comments: 3

Patch Set 6 : nit #

Unified diffs Side-by-side diffs Delta from patch set Stats (+118 lines, -174 lines) Patch
M chrome/browser/chrome_content_browser_client.h View 1 2 3 4 1 chunk +4 lines, -2 lines 0 comments Download
M chrome/browser/chrome_content_browser_client.cc View 1 2 3 4 2 chunks +17 lines, -9 lines 0 comments Download
M chrome/browser/extensions/api/bookmark_manager_private/bookmark_manager_private_api.h View 3 chunks +9 lines, -4 lines 0 comments Download
M chrome/browser/extensions/api/bookmark_manager_private/bookmark_manager_private_api.cc View 6 chunks +21 lines, -7 lines 0 comments Download
M chrome/browser/extensions/chrome_content_browser_client_extensions_part.h View 1 2 3 4 2 chunks +6 lines, -0 lines 0 comments Download
M chrome/browser/extensions/chrome_content_browser_client_extensions_part.cc View 1 2 3 4 2 chunks +29 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_web_ui.h View 1 2 3 chunks +4 lines, -37 lines 0 comments Download
M chrome/browser/extensions/extension_web_ui.cc View 1 2 2 chunks +0 lines, -41 lines 0 comments Download
M chrome/browser/extensions/tab_helper.cc View 1 2 3 2 chunks +4 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/chrome_web_ui_controller_factory.cc View 1 2 3 4 3 chunks +1 line, -22 lines 0 comments Download
M content/browser/frame_host/navigator_impl.cc View 1 2 3 4 2 chunks +15 lines, -25 lines 0 comments Download
M content/browser/webui/web_ui_impl.h View 2 chunks +0 lines, -3 lines 0 comments Download
M content/browser/webui/web_ui_impl.cc View 2 chunks +1 line, -10 lines 0 comments Download
M content/public/browser/content_browser_client.h View 1 2 3 4 5 2 chunks +7 lines, -3 lines 0 comments Download
M content/public/browser/web_ui.h View 1 chunk +0 lines, -5 lines 0 comments Download
M content/public/test/test_web_ui.h View 1 chunk +0 lines, -2 lines 0 comments Download
M content/public/test/test_web_ui.cc View 1 chunk +0 lines, -4 lines 0 comments Download

Messages

Total messages: 37 (25 generated)
Devlin
Charlie, mind taking a look? https://codereview.chromium.org/2468673003/diff/60001/chrome/browser/extensions/chrome_content_browser_client_extensions_part.cc File chrome/browser/extensions/chrome_content_browser_client_extensions_part.cc (right): https://codereview.chromium.org/2468673003/diff/60001/chrome/browser/extensions/chrome_content_browser_client_extensions_part.cc#newcode561 chrome/browser/extensions/chrome_content_browser_client_extensions_part.cc:561: if (extension->is_extension()) Note: this ...
4 years, 1 month ago (2016-11-02 22:01:43 UTC) #14
Charlie Reis
Thanks! I'll try to review today, but I'm trying to first wrap up a few ...
4 years, 1 month ago (2016-11-03 17:03:14 UTC) #17
Charlie Reis
This is great. We've found on https://crbug.com/660498 that the is_renderer_initiated = false part had no ...
4 years, 1 month ago (2016-11-04 23:31:59 UTC) #18
Devlin
+dbeam for webui +asargent for extensions https://codereview.chromium.org/2468673003/diff/60001/content/browser/frame_host/navigator_impl.cc File content/browser/frame_host/navigator_impl.cc (left): https://codereview.chromium.org/2468673003/diff/60001/content/browser/frame_host/navigator_impl.cc#oldcode775 content/browser/frame_host/navigator_impl.cc:775: params.transition = render_frame_host->web_ui()->GetLinkTransitionType(); ...
4 years, 1 month ago (2016-11-05 01:23:17 UTC) #20
asargent_no_longer_on_chrome
lgtm
4 years, 1 month ago (2016-11-07 20:52:16 UTC) #21
Charlie Reis
LGTM! https://codereview.chromium.org/2468673003/diff/80001/content/public/browser/content_browser_client.h File content/public/browser/content_browser_client.h (right): https://codereview.chromium.org/2468673003/diff/80001/content/public/browser/content_browser_client.h#newcode239 content/public/browser/content_browser_client.h:239: // opening new urls and transfer urls. nit: ...
4 years, 1 month ago (2016-11-07 21:00:03 UTC) #22
Devlin
Forgot that Dan's out today. dbeam -> cc, +michaelpg. Michael, mind looking at c/b/ui/webui?
4 years, 1 month ago (2016-11-07 21:02:00 UTC) #24
michaelpg
c/b/ui/webui lgtm
4 years, 1 month ago (2016-11-08 23:36:41 UTC) #25
Devlin
https://codereview.chromium.org/2468673003/diff/80001/content/public/browser/content_browser_client.h File content/public/browser/content_browser_client.h (right): https://codereview.chromium.org/2468673003/diff/80001/content/public/browser/content_browser_client.h#newcode239 content/public/browser/content_browser_client.h:239: // opening new urls and transfer urls. On 2016/11/07 ...
4 years, 1 month ago (2016-11-09 15:45:54 UTC) #30
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/2468673003/100001
4 years, 1 month ago (2016-11-09 15:46:17 UTC) #33
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 1 month ago (2016-11-09 15:50:50 UTC) #35
commit-bot: I haz the power
4 years, 1 month ago (2016-11-09 15:54:19 UTC) #37
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/a32a0900c104b2143e6462febc81e6900dbd2104
Cr-Commit-Position: refs/heads/master@{#430940}

Powered by Google App Engine
This is Rietveld 408576698