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

Issue 4200005: Part 4/4 of immutable Extension refactor: Kill Extension::StaticData and put (Closed)

Created:
10 years, 1 month ago by Matt Perry
Modified:
9 years, 7 months ago
Reviewers:
Aaron Boodman
CC:
chromium-reviews, Aaron Boodman, Erik does not do reviews, Paweł Hajdan Jr., pam+watch_chromium.org, ben+cc_chromium.org
Visibility:
Public.

Description

Part 4/4 of immutable Extension refactor: Kill Extension::StaticData and put its guts into Extension. BUG=56558 TEST=no functional change Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=64676

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+338 lines, -414 lines) Patch
M chrome/browser/extensions/extension_info_map.h View 3 chunks +5 lines, -4 lines 0 comments Download
M chrome/browser/extensions/extension_info_map.cc View 8 chunks +14 lines, -13 lines 0 comments Download
M chrome/browser/extensions/extension_info_map_unittest.cc View 4 chunks +25 lines, -25 lines 0 comments Download
M chrome/browser/profile_impl.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/tabs/tab_strip_model_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/common/extensions/extension.h View 7 chunks +204 lines, -260 lines 0 comments Download
M chrome/common/extensions/extension.cc View 41 chunks +86 lines, -108 lines 1 comment Download
M chrome/common/extensions/extension_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 2 (0 generated)
Matt Perry
10 years, 1 month ago (2010-10-27 23:30:53 UTC) #1
Aaron Boodman
10 years, 1 month ago (2010-10-28 00:15:09 UTC) #2
LGTM!

http://codereview.chromium.org/4200005/diff/1/7
File chrome/common/extensions/extension.cc (right):

http://codereview.chromium.org/4200005/diff/1/7#newcode2229
chrome/common/extensions/extension.cc:2229: // thread, but we're in common and
don't have access to BrowserThread.
I still think this is kinda wonky and should probably just be pulled out into a
separate object, but we can leave that for a separate project.

If you want to protect this for the time being, you could use the hack from
ExtensionResource -- have a static method that on Extension that sets a
ThreadID, call this from BrowserMain or whatever with the UI thread's ID.

Powered by Google App Engine
This is Rietveld 408576698