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

Issue 10565017: Parse the script_badge manifest section. (Closed)

Created:
8 years, 6 months ago by Jeffrey Yasskin
Modified:
8 years, 6 months ago
CC:
chromium-reviews, Aaron Boodman, mihaip-chromium-reviews_chromium.org
Visibility:
Public.

Description

Parse the script_badge manifest section. This isn't wired into much yet. BUG=132853 TEST=unit_tests --gtest_filter=ExtensionManifestTest* browser_tests --gtest_filter=ExtensionBrowserTest* browser_tests --gtest_filter=PageAsBrowserAction* Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=143075

Patch Set 1 #

Total comments: 28

Patch Set 2 : Fix aa's and kalman's comments. #

Total comments: 7

Patch Set 3 : Merge --enable-script-badges flag. #

Patch Set 4 : Fix more review comments, and make script_badge_ non-mutable #

Total comments: 3

Patch Set 5 : Back out support for setting switches in unittests. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+241 lines, -59 lines) Patch
M chrome/browser/extensions/extension_browser_event_router.cc View 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/extensions/script_badge_controller.cc View 1 2 3 4 2 chunks +2 lines, -1 line 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/extensions/api/_manifest_features.json View 1 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/common/extensions/extension.h View 1 2 3 8 chunks +12 lines, -8 lines 0 comments Download
M chrome/common/extensions/extension.cc View 1 2 3 4 8 chunks +93 lines, -49 lines 0 comments Download
M chrome/common/extensions/extension_action.h View 2 chunks +3 lines, -1 line 0 comments Download
M chrome/common/extensions/extension_manifest_constants.h View 1 2 3 chunks +4 lines, -0 lines 0 comments Download
M chrome/common/extensions/extension_manifest_constants.cc View 1 2 3 chunks +8 lines, -0 lines 0 comments Download
A chrome/common/extensions/manifest_tests/extension_manifests_scriptbadge_unittest.cc View 1 2 3 4 1 chunk +75 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/manifest_tests/script_badge_basic.json View 1 chunk +15 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/manifest_tests/script_badge_icons_ignored.json View 1 1 chunk +12 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/manifest_tests/script_badge_only_use_icon16.json View 1 2 3 1 chunk +9 lines, -0 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
Jeffrey Yasskin
I haven't actually watched this do something to a running browser, so let me know ...
8 years, 6 months ago (2012-06-16 00:04:30 UTC) #1
Aaron Boodman
https://chromiumcodereview.appspot.com/10565017/diff/1/chrome/common/extensions/extension.cc File chrome/common/extensions/extension.cc (right): https://chromiumcodereview.appspot.com/10565017/diff/1/chrome/common/extensions/extension.cc#newcode843 chrome/common/extensions/extension.cc:843: *error = ASCIIToUTF16(errors::kScriptBadgeCannotSpecifyIcon); Same here, I don't think we ...
8 years, 6 months ago (2012-06-16 01:50:38 UTC) #2
not at google - send to devlin
http://codereview.chromium.org/10565017/diff/1/chrome/browser/extensions/script_badge_controller.cc File chrome/browser/extensions/script_badge_controller.cc (right): http://codereview.chromium.org/10565017/diff/1/chrome/browser/extensions/script_badge_controller.cc#newcode30 chrome/browser/extensions/script_badge_controller.cc:30: << "Without this, extension->script_badge() would return NULL."; Is this ...
8 years, 6 months ago (2012-06-18 18:51:24 UTC) #3
Aaron Boodman
http://codereview.chromium.org/10565017/diff/1/chrome/common/extensions/extension.cc File chrome/common/extensions/extension.cc (right): http://codereview.chromium.org/10565017/diff/1/chrome/common/extensions/extension.cc#newcode2296 chrome/common/extensions/extension.cc:2296: return false; On 2012/06/18 18:51:24, kalman wrote: > Aaron ...
8 years, 6 months ago (2012-06-18 21:36:21 UTC) #4
Jeffrey Yasskin
http://codereview.chromium.org/10565017/diff/1/chrome/browser/extensions/script_badge_controller.cc File chrome/browser/extensions/script_badge_controller.cc (right): http://codereview.chromium.org/10565017/diff/1/chrome/browser/extensions/script_badge_controller.cc#newcode30 chrome/browser/extensions/script_badge_controller.cc:30: << "Without this, extension->script_badge() would return NULL."; On 2012/06/18 ...
8 years, 6 months ago (2012-06-18 22:16:03 UTC) #5
not at google - send to devlin
http://codereview.chromium.org/10565017/diff/1/chrome/browser/extensions/script_badge_controller.cc File chrome/browser/extensions/script_badge_controller.cc (right): http://codereview.chromium.org/10565017/diff/1/chrome/browser/extensions/script_badge_controller.cc#newcode30 chrome/browser/extensions/script_badge_controller.cc:30: << "Without this, extension->script_badge() would return NULL."; On 2012/06/18 ...
8 years, 6 months ago (2012-06-18 22:59:41 UTC) #6
Aaron Boodman
lgtm http://codereview.chromium.org/10565017/diff/1/chrome/test/data/extensions/manifest_tests/script_badge_basic.json File chrome/test/data/extensions/manifest_tests/script_badge_basic.json (right): http://codereview.chromium.org/10565017/diff/1/chrome/test/data/extensions/manifest_tests/script_badge_basic.json#newcode8 chrome/test/data/extensions/manifest_tests/script_badge_basic.json:8: "19": "icon19.png", On 2012/06/18 22:16:03, Jeffrey Yasskin wrote: ...
8 years, 6 months ago (2012-06-18 23:17:35 UTC) #7
Jeffrey Yasskin
http://codereview.chromium.org/10565017/diff/1/chrome/browser/extensions/script_badge_controller.cc File chrome/browser/extensions/script_badge_controller.cc (right): http://codereview.chromium.org/10565017/diff/1/chrome/browser/extensions/script_badge_controller.cc#newcode30 chrome/browser/extensions/script_badge_controller.cc:30: << "Without this, extension->script_badge() would return NULL."; On 2012/06/18 ...
8 years, 6 months ago (2012-06-18 23:58:41 UTC) #8
not at google - send to devlin
lgtm, don't want to hold you up any more, but do consider reverting those changes ...
8 years, 6 months ago (2012-06-19 00:27:32 UTC) #9
Jeffrey Yasskin
I think I see the overall strategy for command-line switches now. This version should be ...
8 years, 6 months ago (2012-06-19 21:43:08 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jyasskin@chromium.org/10565017/17001
8 years, 6 months ago (2012-06-19 21:46:49 UTC) #11
commit-bot: I haz the power
8 years, 6 months ago (2012-06-19 23:12:57 UTC) #12
Change committed as 143075

Powered by Google App Engine
This is Rietveld 408576698