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

Issue 255087: Adding a unique runtime Id to Profile objects, that can be used as the key... (Closed)

Created:
11 years, 2 months ago by NOT FOR CODE REVIEWS
Modified:
9 years, 7 months ago
Reviewers:
amit
CC:
chromium-reviews_googlegroups.com, ben+cc_chromium.org, tim (not reviewing), Paweł Hajdan Jr.
Visibility:
Public.

Description

Adding a unique runtime Id to Profile objects, that can be used as the key of the ProfileSiteInstanceMap type. This is used to make sure that Profile objects can correctly share site information when one profile is derived from another. BUG=0 TEST=See unit tests

Patch Set 1 #

Patch Set 2 : '' #

Total comments: 1

Patch Set 3 : '' #

Patch Set 4 : '' #

Total comments: 1

Patch Set 5 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+53 lines, -18 lines) Patch
M chrome/browser/automation/automation_profile_impl.h View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/automation/automation_resource_message_filter.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/browsing_instance.h View 1 2 3 2 chunks +4 lines, -3 lines 0 comments Download
M chrome/browser/browsing_instance.cc View 1 2 3 4 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/profile.h View 1 2 3 4 5 chunks +11 lines, -13 lines 0 comments Download
M chrome/browser/profile.cc View 1 2 3 4 3 chunks +11 lines, -0 lines 0 comments Download
M chrome/test/testing_profile.h View 1 2 3 2 chunks +20 lines, -0 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
amit
Thanks Roger for implementing this. LGTM with a nit. http://codereview.chromium.org/255087/diff/1001/1004 File chrome/browser/browsing_instance.h (right): http://codereview.chromium.org/255087/diff/1001/1004#newcode105 Line ...
11 years, 2 months ago (2009-10-06 18:44:56 UTC) #1
NOT FOR CODE REVIEWS
Thanks Amit. Your comment is addressed, changes uploaded. Please see most recent patch set. If ...
11 years, 2 months ago (2009-10-06 20:10:26 UTC) #2
amit
11 years, 2 months ago (2009-10-06 21:08:15 UTC) #3
lgrm with a nit

http://codereview.chromium.org/255087/diff/2002/6004
File chrome/browser/browsing_instance.cc (right):

http://codereview.chromium.org/255087/diff/2002/6004#newcode57
Line 57: : reinterpret_cast<ProfileId>(0);
If we have a NULL profile then should be be returning a valid site instance? If
yes then maybe we can replace reinterpret_cast<ProfileId>(0) with
Profile::InvalidProfileId?

Powered by Google App Engine
This is Rietveld 408576698