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

Issue 11446034: SupportsUserData and manifest handlers for Extension; use them for the Omnibox API. (Closed)

Created:
8 years ago by Yoyo Zhou
Modified:
8 years ago
CC:
chromium-reviews, dbeam+watch-options_chromium.org, Aaron Boodman, tfarina, sail+watch_chromium.org, chromium-apps-reviews_chromium.org
Visibility:
Public.

Description

SupportsUserData and manifest handlers for Extension; use them for the Omnibox API. Note that manifest handlers aren't available in the renderer (there seems to be no place to register them). At least for Omnibox, the renderer doesn't need to parse the manifest field, but this won't be true everywhere. Pull a bunch of Omnibox API stuff out of ExtensionService. BUG=159265 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=172638

Patch Set 1 #

Patch Set 2 : #

Total comments: 6

Patch Set 3 : #

Patch Set 4 : rebase #

Patch Set 5 : no extensions in TemplateURLService #

Patch Set 6 : #

Patch Set 7 : #

Patch Set 8 : nit #

Total comments: 2

Patch Set 9 : mp #

Patch Set 10 : rebase + manifestdata #

Unified diffs Side-by-side diffs Delta from patch set Stats (+575 lines, -181 lines) Patch
M chrome/browser/extensions/api/omnibox/omnibox_api.h View 1 2 3 4 5 6 7 8 4 chunks +51 lines, -0 lines 0 comments Download
M chrome/browser/extensions/api/omnibox/omnibox_api.cc View 1 2 3 4 5 6 7 8 4 chunks +107 lines, -2 lines 0 comments Download
A + chrome/browser/extensions/api/omnibox/omnibox_api_factory.h View 1 2 3 1 chunk +11 lines, -10 lines 0 comments Download
A chrome/browser/extensions/api/omnibox/omnibox_api_factory.cc View 1 1 chunk +40 lines, -0 lines 0 comments Download
M chrome/browser/extensions/api/omnibox/omnibox_apitest.cc View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/extensions/extension_service.h View 1 2 3 4 5 6 7 8 9 2 chunks +0 lines, -11 lines 0 comments Download
M chrome/browser/extensions/extension_service.cc View 1 2 3 4 5 6 7 8 9 6 chunks +0 lines, -46 lines 0 comments Download
M chrome/browser/profiles/profile_dependency_manager.cc View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/search_engines/template_url_service.h View 1 2 3 4 4 chunks +10 lines, -18 lines 0 comments Download
M chrome/browser/search_engines/template_url_service.cc View 1 2 3 4 4 chunks +15 lines, -40 lines 0 comments Download
M chrome/browser/ui/app_list/search_builder.cc View 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/ui/cocoa/extensions/extension_installed_bubble_controller.mm View 1 2 4 chunks +5 lines, -4 lines 0 comments Download
M chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.mm View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -3 lines 0 comments Download
chrome/browser/ui/gtk/extensions/extension_installed_bubble_gtk.cc View 1 2 3 chunks +4 lines, -3 lines 0 comments Download
M chrome/browser/ui/gtk/location_bar_view_gtk.cc View 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/ui/omnibox/omnibox_popup_model.cc View 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/extensions/extension_installed_bubble.cc View 1 2 3 chunks +4 lines, -3 lines 0 comments Download
M chrome/browser/ui/views/location_bar/location_bar_view.cc View 1 2 3 4 5 6 7 8 9 2 chunks +3 lines, -4 lines 0 comments Download
M chrome/browser/ui/webui/options/search_engine_manager_handler.cc View 1 2 3 chunks +4 lines, -2 lines 0 comments Download
M chrome/chrome_browser_extensions.gypi View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/chrome_common.gypi View 1 2 3 4 5 6 7 8 9 3 chunks +7 lines, -3 lines 0 comments Download
A chrome/common/extensions/api/omnibox/omnibox_handler.h View 1 2 3 4 5 6 7 8 9 1 chunk +43 lines, -0 lines 0 comments Download
A chrome/common/extensions/api/omnibox/omnibox_handler.cc View 1 2 3 4 5 6 7 8 9 1 chunk +60 lines, -0 lines 0 comments Download
M chrome/common/extensions/extension.h View 1 2 3 4 5 6 7 8 9 10 chunks +27 lines, -13 lines 0 comments Download
M chrome/common/extensions/extension.cc View 1 2 3 4 5 6 7 8 9 8 chunks +33 lines, -13 lines 0 comments Download
A chrome/common/extensions/manifest_handler.h View 1 2 1 chunk +52 lines, -0 lines 0 comments Download
A chrome/common/extensions/manifest_handler.cc View 1 2 1 chunk +84 lines, -0 lines 0 comments Download

Messages

Total messages: 22 (0 generated)
Yoyo Zhou
8 years ago (2012-12-06 03:14:07 UTC) #1
Yoyo Zhou
I think I found ChromeContentRendererClient as the place to put registration in the renderer. With ...
8 years ago (2012-12-06 19:58:53 UTC) #2
Matt Perry
Neat, LGTM. If we don't need the omnibox API in the renderer, why not just ...
8 years ago (2012-12-07 01:22:58 UTC) #3
Yoyo Zhou
I went and moved the common parts to common. The renderer still doesn't know about ...
8 years ago (2012-12-07 02:13:32 UTC) #4
Matt Perry
lgtm
8 years ago (2012-12-07 20:20:02 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yoz@chromium.org/11446034/5002
8 years ago (2012-12-07 21:25:19 UTC) #6
commit-bot: I haz the power
Failed to apply patch for chrome/browser/profiles/profile_dependency_manager.cc: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
8 years ago (2012-12-07 21:25:31 UTC) #7
Yoyo Zhou
sky: please review gyp changes, c/b/ui, c/b/search_engines. It's mostly refactoring. rlp: please review c/b/profiles.
8 years ago (2012-12-07 21:44:31 UTC) #8
rpetterson
c/b/profiles LGTM
8 years ago (2012-12-07 22:02:58 UTC) #9
Yoyo Zhou
+nileshagrawal: I'd like to get your opinion on what to do in case enable_extensions == ...
8 years ago (2012-12-07 22:24:21 UTC) #10
nilesh
On 2012/12/07 22:24:21, Yoyo Zhou wrote: > +nileshagrawal: I'd like to get your opinion on ...
8 years ago (2012-12-07 23:11:47 UTC) #11
sky
LGTM
8 years ago (2012-12-07 23:44:04 UTC) #12
Yoyo Zhou
On 2012/12/07 23:11:47, nileshagrawal1 wrote: > Even better, we can call RegisterExtensionKeyword with id, name ...
8 years ago (2012-12-08 00:27:44 UTC) #13
Matt Perry
lgtm https://chromiumcodereview.appspot.com/11446034/diff/8031/chrome/browser/extensions/api/omnibox/omnibox_api.cc File chrome/browser/extensions/api/omnibox/omnibox_api.cc (right): https://chromiumcodereview.appspot.com/11446034/diff/8031/chrome/browser/extensions/api/omnibox/omnibox_api.cc#newcode199 chrome/browser/extensions/api/omnibox/omnibox_api.cc:199: pending_extensions_.erase(i); pendings_extensions_.erase(extension) should work too.
8 years ago (2012-12-08 00:46:26 UTC) #14
Yoyo Zhou
https://chromiumcodereview.appspot.com/11446034/diff/8031/chrome/browser/extensions/api/omnibox/omnibox_api.cc File chrome/browser/extensions/api/omnibox/omnibox_api.cc (right): https://chromiumcodereview.appspot.com/11446034/diff/8031/chrome/browser/extensions/api/omnibox/omnibox_api.cc#newcode199 chrome/browser/extensions/api/omnibox/omnibox_api.cc:199: pending_extensions_.erase(i); On 2012/12/08 00:46:26, Matt Perry wrote: > pendings_extensions_.erase(extension) ...
8 years ago (2012-12-08 00:58:18 UTC) #15
Yoyo Zhou
FYI, according to test failures, it appears that I'll need to switch to a thread-safe ...
8 years ago (2012-12-08 02:06:15 UTC) #16
Yoyo Zhou
After discussion with jam, I added the SupportsUserData-alike to Extension directly. Matt, another look? (Sorry ...
8 years ago (2012-12-11 22:42:43 UTC) #17
Matt Perry
Nice and clean. I like it. LGTM
8 years ago (2012-12-11 23:27:56 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yoz@chromium.org/11446034/18001
8 years ago (2012-12-12 00:13:00 UTC) #19
commit-bot: I haz the power
Retried try job too often on linux_chromeos for step(s) aura_unittests, base_unittests, browser_tests, cacheinvalidation_unittests, check_deps, chromeos_unittests, ...
8 years ago (2012-12-12 03:10:57 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yoz@chromium.org/11446034/18001
8 years ago (2012-12-12 17:23:48 UTC) #21
commit-bot: I haz the power
8 years ago (2012-12-12 19:32:59 UTC) #22
Message was sent while issue was closed.
Change committed as 172638

Powered by Google App Engine
This is Rietveld 408576698