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

Issue 11014009: Beginnings of the script bubble. (Closed)

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

Description

Patch Set 1 #

Patch Set 2 : Add missing manifest.json file #

Patch Set 3 : Add missing icon file #

Patch Set 4 : A wild test appears! #

Patch Set 5 : Cleanup naming #

Patch Set 6 : More minor cleanup #

Total comments: 29

Patch Set 7 : yasskments #

Patch Set 8 : yozments #

Patch Set 9 : yozments #

Total comments: 3

Patch Set 10 : ready to land #

Unified diffs Side-by-side diffs Delta from patch set Stats (+644 lines, -109 lines) Patch
M chrome/browser/browser_resources.grd View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/extensions/component_loader.h View 1 2 3 4 5 6 7 5 chunks +29 lines, -22 lines 0 comments Download
M chrome/browser/extensions/component_loader.cc View 1 2 3 4 5 6 7 14 chunks +60 lines, -43 lines 0 comments Download
M chrome/browser/extensions/component_loader_unittest.cc View 1 2 3 4 5 6 7 chunks +42 lines, -41 lines 0 comments Download
M chrome/browser/extensions/extension_browsertest.cc View 1 chunk +2 lines, -2 lines 0 comments Download
A chrome/browser/extensions/script_bubble_controller.h View 1 2 3 4 5 6 1 chunk +33 lines, -0 lines 0 comments Download
A chrome/browser/extensions/script_bubble_controller.cc View 1 2 3 4 5 6 1 chunk +53 lines, -0 lines 0 comments Download
A chrome/browser/extensions/script_bubble_controller_unittest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +117 lines, -0 lines 0 comments Download
M chrome/browser/extensions/tab_helper.h View 1 2 3 4 5 6 4 chunks +7 lines, -1 line 0 comments Download
M chrome/browser/extensions/tab_helper.cc View 1 2 3 4 3 chunks +5 lines, -0 lines 0 comments Download
A + chrome/browser/resources/script_bubble/16.png View 1 2 3 4 Binary file 0 comments Download
A chrome/browser/resources/script_bubble/manifest.json View 1 2 3 4 5 6 7 1 chunk +10 lines, -0 lines 0 comments Download
M chrome/chrome_browser_extensions.gypi View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/chrome_common.gypi View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/common/chrome_switches.h View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/chrome_switches.cc View 1 2 3 4 5 1 chunk +4 lines, -0 lines 0 comments Download
A chrome/common/extensions/feature_switch.h View 1 2 3 4 5 6 1 chunk +62 lines, -0 lines 0 comments Download
A chrome/common/extensions/feature_switch.cc View 1 2 3 4 5 6 1 chunk +78 lines, -0 lines 0 comments Download
A chrome/common/extensions/feature_switch_unittest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +134 lines, -0 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
Aaron Boodman
8 years, 2 months ago (2012-09-30 04:05:05 UTC) #1
Aaron Boodman
yoz: c/b/e/component_loader* kalman: everything else Note: The changes to ComponentLoader are to make it so ...
8 years, 2 months ago (2012-09-30 04:08:14 UTC) #2
Aaron Boodman
redirecting kalman bit to jyasskin
8 years, 2 months ago (2012-10-01 07:49:32 UTC) #3
Jeffrey Yasskin
http://codereview.chromium.org/11014009/diff/9002/chrome/browser/extensions/component_loader.cc File chrome/browser/extensions/component_loader.cc (right): http://codereview.chromium.org/11014009/diff/9002/chrome/browser/extensions/component_loader.cc#newcode153 chrome/browser/extensions/component_loader.cc:153: if (extension_service_->is_ready()) { Comment why you need to handle ...
8 years, 2 months ago (2012-10-02 00:26:31 UTC) #4
Yoyo Zhou
https://chromiumcodereview.appspot.com/11014009/diff/9002/chrome/browser/extensions/component_loader.cc File chrome/browser/extensions/component_loader.cc (right): https://chromiumcodereview.appspot.com/11014009/diff/9002/chrome/browser/extensions/component_loader.cc#newcode59 chrome/browser/extensions/component_loader.cc:59: return Extension::GenerateIdForPath(path); Is this a good idea? The path ...
8 years, 2 months ago (2012-10-02 01:21:01 UTC) #5
Aaron Boodman
Here are the responses to jyasskin's comments. https://chromiumcodereview.appspot.com/11014009/diff/9002/chrome/browser/extensions/component_loader.cc File chrome/browser/extensions/component_loader.cc (right): https://chromiumcodereview.appspot.com/11014009/diff/9002/chrome/browser/extensions/component_loader.cc#newcode153 chrome/browser/extensions/component_loader.cc:153: if (extension_service_->is_ready()) ...
8 years, 2 months ago (2012-10-02 01:28:52 UTC) #6
Aaron Boodman
Here are the responses to Yoyo's comments. https://chromiumcodereview.appspot.com/11014009/diff/9002/chrome/browser/extensions/component_loader.cc File chrome/browser/extensions/component_loader.cc (right): https://chromiumcodereview.appspot.com/11014009/diff/9002/chrome/browser/extensions/component_loader.cc#newcode59 chrome/browser/extensions/component_loader.cc:59: return Extension::GenerateIdForPath(path); ...
8 years, 2 months ago (2012-10-02 01:42:22 UTC) #7
Jeffrey Yasskin
LGTM https://chromiumcodereview.appspot.com/11014009/diff/9002/chrome/browser/extensions/script_bubble_controller.cc File chrome/browser/extensions/script_bubble_controller.cc (right): https://chromiumcodereview.appspot.com/11014009/diff/9002/chrome/browser/extensions/script_bubble_controller.cc#newcode42 chrome/browser/extensions/script_bubble_controller.cc:42: int tab_id = ExtensionTabUtil::GetTabId(web_contents); On 2012/10/02 01:28:52, Aaron ...
8 years, 2 months ago (2012-10-02 01:45:51 UTC) #8
Yoyo Zhou
LGTM
8 years, 2 months ago (2012-10-02 02:51:40 UTC) #9
Aaron Boodman
8 years, 2 months ago (2012-10-02 07:46:40 UTC) #10
https://chromiumcodereview.appspot.com/11014009/diff/9002/chrome/browser/exte...
File chrome/browser/extensions/script_bubble_controller.cc (right):

https://chromiumcodereview.appspot.com/11014009/diff/9002/chrome/browser/exte...
chrome/browser/extensions/script_bubble_controller.cc:42: int tab_id =
ExtensionTabUtil::GetTabId(web_contents);
On 2012/10/02 01:45:51, Jeffrey Yasskin wrote:
> On 2012/10/02 01:28:52, Aaron Boodman wrote:
> > On 2012/10/02 00:26:31, Jeffrey Yasskin wrote:
> > > This should be SessionId::IdForTab(web_contents);
> > 
> > Why? I prefer to use ExtensionTabUtil because semantically, I want the
> extension
> > system's notion of the tab id, not the session system's.
> 
> They're the same id: ExtensionTabUtil::GetTabId just forwards to
> SessionId::IdForTab. You also used SessionId in your test. We're calling a mix
> of both throughout the extensions system, but we should probably remove
> ExtensionTabId in order to have as few APIs to get a numeric ID for a tab as
> possible.

The SessionID in the unit test was a paste-o from some other test. I've replaced
it with ExtensionTabUtil. I realize they are currently the same ID, but having a
distinction in the code theoretically makes it easier for them to not be the
same ID in the future. And it also makes the code more self-documenting. Anyway,
I think ExtensionTabUtil::GetTabId is much more common in the extension system
today, so there's consistency.

https://chromiumcodereview.appspot.com/11014009/diff/16005/chrome/common/exte...
File chrome/common/extensions/feature_switch_unittest.cc (right):

https://chromiumcodereview.appspot.com/11014009/diff/16005/chrome/common/exte...
chrome/common/extensions/feature_switch_unittest.cc:36:
TEST_F(FeatureSwitchDisabledTest, DefaultDisabled_NoSwitchValue) {
On 2012/10/02 01:45:51, Jeffrey Yasskin wrote:
> Note that "Disabled" already appears in the fixture name, so you don't
> absolutely need to duplicate it in the test name.

Done.

Powered by Google App Engine
This is Rietveld 408576698