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

Issue 8769022: Add site_instance_id to ProcessMap::Item. (Closed)

Created:
9 years ago by Aaron Boodman
Modified:
9 years ago
Reviewers:
Charlie Reis
CC:
chromium-reviews, Erik does not do reviews, mihaip+watch_chromium.org, Paweł Hajdan Jr.
Visibility:
Public.

Description

Add site_instance_id to ProcessMap::Item. This is needed because there can be two site instances for the same extension/process pair. Boo. The linear scan for Contains() is a bummer. I thought about more exotic data structures, but it didn't seem worth it. BUG=105328 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=112921

Patch Set 1 #

Patch Set 2 : move Item into cc file #

Total comments: 7

Patch Set 3 : changes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+109 lines, -66 lines) Patch
M chrome/browser/chrome_content_browser_client.cc View 2 chunks +10 lines, -6 lines 0 comments Download
M chrome/browser/extensions/extension_info_map.h View 1 chunk +4 lines, -2 lines 0 comments Download
M chrome/browser/extensions/extension_info_map.cc View 2 chunks +7 lines, -5 lines 0 comments Download
M chrome/browser/extensions/extension_service.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/process_map.h View 1 2 4 chunks +16 lines, -18 lines 0 comments Download
M chrome/browser/extensions/process_map.cc View 1 3 chunks +48 lines, -24 lines 0 comments Download
M chrome/browser/extensions/process_map_unittest.cc View 1 2 2 chunks +23 lines, -10 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
Aaron Boodman
9 years ago (2011-12-01 23:50:23 UTC) #1
Charlie Reis
LGTM with minor comments inline. Thanks! http://codereview.chromium.org/8769022/diff/2001/chrome/browser/extensions/extension_info_map.h File chrome/browser/extensions/extension_info_map.h (right): http://codereview.chromium.org/8769022/diff/2001/chrome/browser/extensions/extension_info_map.h#newcode59 chrome/browser/extensions/extension_info_map.h:59: int site_instance_id); Conceptually ...
9 years ago (2011-12-02 00:45:11 UTC) #2
Aaron Boodman
will land soon http://codereview.chromium.org/8769022/diff/2001/chrome/browser/extensions/extension_info_map.h File chrome/browser/extensions/extension_info_map.h (right): http://codereview.chromium.org/8769022/diff/2001/chrome/browser/extensions/extension_info_map.h#newcode59 chrome/browser/extensions/extension_info_map.h:59: int site_instance_id); On 2011/12/02 00:45:11, creis ...
9 years ago (2011-12-02 05:32:45 UTC) #3
Robert Nagy
Hello Aaron, It seems that this change has broke *BSD builds and I was unable ...
9 years ago (2011-12-06 20:31:14 UTC) #4
Aaron Boodman
On 2011/12/06 20:31:14, Robert Nagy wrote: > Hello Aaron, > > It seems that this ...
9 years ago (2011-12-06 21:42:01 UTC) #5
Robert Nagy
On 2011/12/06 21:42:01, Aaron Boodman wrote: > On 2011/12/06 20:31:14, Robert Nagy wrote: > > ...
9 years ago (2011-12-06 22:39:08 UTC) #6
Aaron Boodman
9 years ago (2011-12-07 20:24:57 UTC) #7
On 2011/12/06 22:39:08, Robert Nagy wrote:
> On 2011/12/06 21:42:01, Aaron Boodman wrote:
> > On 2011/12/06 20:31:14, Robert Nagy wrote:
> > > Hello Aaron,
> > > 
> > > It seems that this change has broke *BSD builds and I was unable to figure
> out
> > > the root cause because I can't see any platform related change in this
> > patchset.
> > > I was wondering if this is a gcc bug or an unsupported feature in older
gcc?
> > > chrome/browser/extensions/process_map.cc: In member function 'bool
> > > extensions::ProcessMap::Insert(const std::string&, int, int)':
> > > chrome/browser/extensions/process_map.cc:63: error: no matching function
for
> > > call to 'extensions::ProcessMap::Item::Item(extensions::ProcessMap::Item)'
> > > chrome/browser/extensions/process_map.cc: In member function 'bool
> > > extensions::ProcessMap::Remove(const std::string&, int, int)':
> > > chrome/browser/extensions/process_map.cc:68: error: no matching function
for
> > > call to 'extensions::ProcessMap::Item::Item(extensions::ProcessMap::Item)'
> > 
> > Hi Robert,
> > 
> > It is probably because of the explicit keyword on the Item() constructor.
Can
> > you double-check that removing that fixes the problem? if so I will commit a
> > change.
> 
> Hey,
> 
> Yes, that made it happy.

ok, i've committed this. hopefully it sticks.

Powered by Google App Engine
This is Rietveld 408576698