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

Issue 1845233003: SiteInstance unittest improvements (Closed)

Created:
4 years, 8 months ago by ncarter (slow)
Modified:
4 years, 8 months ago
Reviewers:
Charlie Reis
CC:
chromium-reviews, jam, darin-cc_chromium.org, nasko+codewatch_chromium.org, creis+watch_chromium.org, ajwong+watch_chromium.org, site-isolation-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@doghouse_now
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

SiteInstance unittest improvements - Add a new unittest for GetDefaultSubframeSiteInstance. - Rewrite tests to not depend on inheritance; BrowsingInstance calls the ctor of SiteInstanceImpl directly, and this made it hard to do deletion counters for the defaul subframe siteinstance using the inheritance tricks. - Rework delete counters, using existing mechanisms in the API. - mark SiteInstanceImpl/BrowsingInstance final, since we can. BUG=594217 Committed: https://crrev.com/a9f3ad7a01940804a4741f02721b459add84a9e8 Cr-Commit-Position: refs/heads/master@{#385639}

Patch Set 1 #

Total comments: 13

Patch Set 2 : Rebase & apply Charlie's suggestions. #

Patch Set 3 : NULL -> nullptr #

Patch Set 4 : Friend test. #

Patch Set 5 : Add missing #include for FRIEND_TEST #

Unified diffs Side-by-side diffs Delta from patch set Stats (+177 lines, -159 lines) Patch
M content/browser/browsing_instance.h View 1 2 3 4 3 chunks +11 lines, -10 lines 0 comments Download
M content/browser/site_instance_impl.h View 1 3 chunks +11 lines, -14 lines 0 comments Download
M content/browser/site_instance_impl_unittest.cc View 1 2 3 22 chunks +155 lines, -135 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 21 (11 generated)
ncarter (slow)
Charlie, this is conditional on the TDI patch landing, but ready for review anyhow. https://codereview.chromium.org/1845233003/diff/1/content/browser/site_instance_impl.h ...
4 years, 8 months ago (2016-03-31 16:53:48 UTC) #3
Charlie Reis
LGTM with nits, assuming the bots are happy with it! https://codereview.chromium.org/1845233003/diff/1/content/browser/site_instance_impl.h File content/browser/site_instance_impl.h (right): https://codereview.chromium.org/1845233003/diff/1/content/browser/site_instance_impl.h#newcode132 ...
4 years, 8 months ago (2016-04-01 21:50:42 UTC) #4
ncarter (slow)
https://codereview.chromium.org/1845233003/diff/1/content/browser/site_instance_impl.h File content/browser/site_instance_impl.h (right): https://codereview.chromium.org/1845233003/diff/1/content/browser/site_instance_impl.h#newcode132 content/browser/site_instance_impl.h:132: protected: On 2016/04/01 21:50:41, Charlie Reis (slow til 4-8) ...
4 years, 8 months ago (2016-04-04 21:47:33 UTC) #6
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1845233003/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1845233003/40001
4 years, 8 months ago (2016-04-04 21:47:44 UTC) #7
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: android_compile_dbg on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_compile_dbg/builds/45029) cast_shell_android on ...
4 years, 8 months ago (2016-04-04 22:06:04 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1845233003/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1845233003/60001
4 years, 8 months ago (2016-04-04 22:26:43 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: cast_shell_linux on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/cast_shell_linux/builds/139304)
4 years, 8 months ago (2016-04-04 22:43:59 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1845233003/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1845233003/80001
4 years, 8 months ago (2016-04-06 23:22:34 UTC) #17
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 8 months ago (2016-04-07 03:08:02 UTC) #19
commit-bot: I haz the power
4 years, 8 months ago (2016-04-07 03:09:33 UTC) #21
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/a9f3ad7a01940804a4741f02721b459add84a9e8
Cr-Commit-Position: refs/heads/master@{#385639}

Powered by Google App Engine
This is Rietveld 408576698