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

Issue 2509323003: [Extensions] Fix bookmark drag-and-drop bug (Closed)

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

Description

[Extensions] Fix bookmark drag-and-drop bug https://crrev.com/a32a0900c104b2143e6462febc81e6900dbd2104 stopped ExtensionWebUI from being created for chrome://bookmarks in favor of a WebContentsUserData implementation. Unfortunately, WebUI is created on a per render frame basis and refreshed on navigation, whereas WebContentsUserData are created once at web contents initalization. As such, the bookmarks drag helper wasn't being created. Instead, just create the bookmarks drag helper for each web contents. It's a little unfortunate, but it's only called into with explicit bookmark drag-and-drop commands and doesn't have any real initialization cost or maintained state, so if it's never used in the web contents, it becomes essentially a no-op. In practice, this is probably cheaper than watching each navigation and conditionally creating/destroying the helper on the fly. BUG=665411 Committed: https://crrev.com/5b68b9b08166d20070c7360c11da97e75f547f3d Cr-Commit-Position: refs/heads/master@{#432978}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -16 lines) Patch
M chrome/browser/extensions/api/bookmark_manager_private/bookmark_manager_private_api.h View 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/browser/extensions/api/bookmark_manager_private/bookmark_manager_private_api.cc View 1 chunk +0 lines, -12 lines 0 comments Download
M chrome/browser/extensions/tab_helper.cc View 1 chunk +1 line, -2 lines 0 comments Download

Messages

Total messages: 12 (7 generated)
Devlin
Antony, mind taking a look?
4 years, 1 month ago (2016-11-17 19:44:52 UTC) #6
asargent_no_longer_on_chrome
lgtm
4 years, 1 month ago (2016-11-17 20:14:35 UTC) #7
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/2509323003/1
4 years, 1 month ago (2016-11-17 21:00:46 UTC) #9
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 1 month ago (2016-11-17 21:49:21 UTC) #10
commit-bot: I haz the power
4 years, 1 month ago (2016-11-17 21:51:54 UTC) #12
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/5b68b9b08166d20070c7360c11da97e75f547f3d
Cr-Commit-Position: refs/heads/master@{#432978}

Powered by Google App Engine
This is Rietveld 408576698