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

Issue 11588004: Move ScriptBadge, ActionInfo out of Extension; preparation for BrowserAction (Closed)

Created:
8 years ago by Devlin
Modified:
7 years, 11 months ago
CC:
chromium-reviews, Aaron Boodman, tfarina, chromium-apps-reviews_chromium.org, SanjoyPal, mhx348_motorola.com
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Move ScriptBadge, ActionInfo out of Extension; preparation for BrowserAction Moves the parsing of the ScriptBadge key in the manifest out of extension.cc. Also moves out the ActionInfo struct, which Extension should not need to know about. Move some common parsing functions (e.g. LoadIconsFromDirectory) into a common helper file. Rename extension_script_badge_api to script_badge_api; make a ScriptBadgeAPI PKS. BUG=159265 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=177265

Patch Set 1 : #

Total comments: 17

Patch Set 2 : Yoyo's requested changes #

Total comments: 10

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : Latest master #

Patch Set 6 : Move ManifestHandler::HasNoKey impl into .cc #

Patch Set 7 : gypi change for Android to have ActionInfo #

Patch Set 8 : Latest master #

Patch Set 9 : Latest master and remove api factory #

Patch Set 10 : Latest master for CQ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+716 lines, -588 lines) Patch
M chrome/browser/extensions/api/extension_action/extension_actions_api.cc View 1 4 chunks +8 lines, -9 lines 0 comments Download
D chrome/browser/extensions/api/extension_action/extension_script_badge_api.h View 1 chunk +0 lines, -42 lines 0 comments Download
D chrome/browser/extensions/api/extension_action/extension_script_badge_api.cc View 1 chunk +0 lines, -16 lines 0 comments Download
A + chrome/browser/extensions/api/extension_action/script_badge_api.h View 1 2 3 4 5 6 7 8 2 chunks +25 lines, -3 lines 0 comments Download
A chrome/browser/extensions/api/extension_action/script_badge_api.cc View 1 2 3 4 5 6 7 8 9 1 chunk +47 lines, -0 lines 0 comments Download
M chrome/browser/extensions/browser_event_router.cc View 1 2 3 4 5 6 7 8 9 2 chunks +5 lines, -5 lines 0 comments Download
M chrome/browser/extensions/extension_action.h View 4 chunks +6 lines, -6 lines 0 comments Download
M chrome/browser/extensions/extension_action.cc View 4 chunks +10 lines, -10 lines 0 comments Download
M chrome/browser/extensions/extension_action_manager.cc View 1 2 3 4 5 6 4 chunks +11 lines, -9 lines 0 comments Download
M chrome/browser/extensions/extension_action_unittest.cc View 10 chunks +22 lines, -21 lines 0 comments Download
M chrome/browser/extensions/extension_function_registry.cc View 1 2 3 4 5 6 7 8 9 2 chunks +0 lines, -6 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/ui/gtk/location_bar_view_gtk.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/location_bar/script_bubble_icon_view.cc View 2 chunks +2 lines, -1 line 0 comments Download
M chrome/chrome_browser_extensions.gypi View 1 2 3 4 5 6 7 8 9 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/chrome_common.gypi View 1 2 3 4 5 6 7 8 9 3 chunks +8 lines, -0 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 4 5 6 7 8 9 2 chunks +1 line, -1 line 0 comments Download
M chrome/common/badge_util.h View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/common/badge_util.cc View 2 chunks +2 lines, -2 lines 0 comments Download
A chrome/common/extensions/api/extension_action/action_info.h View 1 2 3 4 5 6 1 chunk +46 lines, -0 lines 0 comments Download
A chrome/common/extensions/api/extension_action/action_info.cc View 1 2 3 4 5 6 1 chunk +53 lines, -0 lines 0 comments Download
A chrome/common/extensions/api/extension_action/script_badge_handler.h View 1 2 3 4 5 6 1 chunk +36 lines, -0 lines 0 comments Download
A chrome/common/extensions/api/extension_action/script_badge_handler.cc View 1 2 3 4 5 6 1 chunk +97 lines, -0 lines 0 comments Download
A + chrome/common/extensions/api/extension_action/script_badge_manifest_unittest.cc View 1 2 3 4 5 6 9 chunks +34 lines, -16 lines 0 comments Download
M chrome/common/extensions/extension.h View 1 2 3 4 5 6 7 8 9 7 chunks +3 lines, -35 lines 0 comments Download
M chrome/common/extensions/extension.cc View 1 2 3 4 5 6 7 8 9 12 chunks +29 lines, -243 lines 0 comments Download
M chrome/common/extensions/extension_file_util.cc View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -1 line 0 comments Download
M chrome/common/extensions/extension_unittest.cc View 6 chunks +9 lines, -14 lines 0 comments Download
A chrome/common/extensions/manifest_handler_helpers.h View 1 2 3 4 5 6 1 chunk +51 lines, -0 lines 0 comments Download
A chrome/common/extensions/manifest_handler_helpers.cc View 1 2 3 4 5 6 1 chunk +197 lines, -0 lines 0 comments Download
D chrome/common/extensions/manifest_tests/extension_manifests_scriptbadge_unittest.cc View 1 1 chunk +0 lines, -138 lines 0 comments Download
M chrome/common/icon_with_badge_image_source.h View 3 chunks +3 lines, -3 lines 0 comments Download
M chrome/common/icon_with_badge_image_source.cc View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 18 (0 generated)
Devlin
https://codereview.chromium.org/11588004/diff/4001/chrome/common/extensions/extension.cc File chrome/common/extensions/extension.cc (left): https://codereview.chromium.org/11588004/diff/4001/chrome/common/extensions/extension.cc#oldcode3074 chrome/common/extensions/extension.cc:3074: } else { Do we know yet how we ...
8 years ago (2012-12-17 20:14:53 UTC) #1
Devlin
With one exception (see the comment), this should be mostly ready. There might be some ...
8 years ago (2012-12-17 20:16:42 UTC) #2
Yoyo Zhou
https://codereview.chromium.org/11588004/diff/4001/chrome/browser/extensions/api/extension_action/script_badge_api.cc File chrome/browser/extensions/api/extension_action/script_badge_api.cc (right): https://codereview.chromium.org/11588004/diff/4001/chrome/browser/extensions/api/extension_action/script_badge_api.cc#newcode7 chrome/browser/extensions/api/extension_action/script_badge_api.cc:7: #include "chrome/browser/extensions/api/extension_action/script_badge_api_factory.h" This file seems to be missing. https://codereview.chromium.org/11588004/diff/4001/chrome/browser/extensions/api/extension_action/script_badge_api.h ...
8 years ago (2012-12-18 02:01:41 UTC) #3
Devlin
https://codereview.chromium.org/11588004/diff/4001/chrome/browser/extensions/api/extension_action/script_badge_api.cc File chrome/browser/extensions/api/extension_action/script_badge_api.cc (right): https://codereview.chromium.org/11588004/diff/4001/chrome/browser/extensions/api/extension_action/script_badge_api.cc#newcode7 chrome/browser/extensions/api/extension_action/script_badge_api.cc:7: #include "chrome/browser/extensions/api/extension_action/script_badge_api_factory.h" On 2012/12/18 02:01:41, Yoyo Zhou wrote: > ...
8 years ago (2012-12-18 20:42:07 UTC) #4
Yoyo Zhou
LGTM with nits. If you want to rename ScriptBadgeAPI to ExtensionActionAPI in the next CL, ...
8 years ago (2012-12-19 01:38:50 UTC) #5
Devlin
https://chromiumcodereview.appspot.com/11588004/diff/36002/chrome/browser/extensions/api/extension_action/script_badge_api.h File chrome/browser/extensions/api/extension_action/script_badge_api.h (right): https://chromiumcodereview.appspot.com/11588004/diff/36002/chrome/browser/extensions/api/extension_action/script_badge_api.h#newcode23 chrome/browser/extensions/api/extension_action/script_badge_api.h:23: static ScriptBadgeAPI* Get(Profile* profile); On 2012/12/19 01:38:50, Yoyo Zhou ...
8 years ago (2012-12-19 19:38:16 UTC) #6
Devlin
+ ben for chrome/*.gypi, c/c/badge_util.*, c/c/icon_with_badge_image_source.*, c/b/ui/views/ + erg for chrome/browser/ui/gtk + mirandac for c/b/profiles/ ...
8 years ago (2012-12-19 19:41:38 UTC) #7
Miranda Callahan
c/b/profiles/* LGTM. On 2012/12/19 19:41:38, D Cronin wrote: > + ben for chrome/*.gypi, c/c/badge_util.*, c/c/icon_with_badge_image_source.*, ...
7 years, 11 months ago (2013-01-02 14:34:53 UTC) #8
Elliot Glaysher
Your gtk changes are TBRable. (but lgtm anyway)
7 years, 11 months ago (2013-01-02 18:57:28 UTC) #9
Devlin
-reviewer ben +tbr ben (The changes are all small, and do not add any new ...
7 years, 11 months ago (2013-01-04 16:28:32 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rdevlin.cronin@chromium.org/11588004/46001
7 years, 11 months ago (2013-01-04 16:28:53 UTC) #11
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 11 months ago (2013-01-04 17:02:33 UTC) #12
Devlin
Turns out an exception needs to be added to the gypi, since extension apis are ...
7 years, 11 months ago (2013-01-04 20:06:45 UTC) #13
nilesh
On 2013/01/04 20:06:45, D Cronin wrote: > Turns out an exception needs to be added ...
7 years, 11 months ago (2013-01-04 20:21:45 UTC) #14
Devlin
On 2013/01/04 20:21:45, nileshagrawal1 wrote: > On 2013/01/04 20:06:45, D Cronin wrote: > > Turns ...
7 years, 11 months ago (2013-01-10 22:27:39 UTC) #15
Ben Goodger (Google)
lgtm
7 years, 11 months ago (2013-01-11 23:25:37 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rdevlin.cronin@chromium.org/11588004/83001
7 years, 11 months ago (2013-01-16 19:42:09 UTC) #17
commit-bot: I haz the power
7 years, 11 months ago (2013-01-16 23:36:38 UTC) #18
Message was sent while issue was closed.
Change committed as 177265

Powered by Google App Engine
This is Rietveld 408576698