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

Issue 1547393002: [iOS] Add a HasActiveStateManager method to BrowserState. (Closed)

Created:
4 years, 11 months ago by sdefresne
Modified:
4 years, 11 months ago
Reviewers:
shreyasv1
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[iOS] Add a HasActiveStateManager method to BrowserState. Add a method to check whether a BrowserState has an ActiveStateManager to avoid unnecessary object creation during shutdown. BUG=569515 Committed: https://crrev.com/6eaff4f9763fc6d647b5b31eb5aa6ac18744faee Cr-Commit-Position: refs/heads/master@{#367076}

Patch Set 1 #

Patch Set 2 : Add DCHECK that the thread is correct #

Total comments: 4

Patch Set 3 : Address comments #

Total comments: 2

Patch Set 4 : Fix comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+10 lines, -0 lines) Patch
M ios/web/browser_state.mm View 1 2 1 chunk +6 lines, -0 lines 0 comments Download
M ios/web/public/browser_state.h View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 12 (4 generated)
sdefresne
Please take a look.
4 years, 11 months ago (2015-12-29 14:24:30 UTC) #2
shreyasv1
https://codereview.chromium.org/1547393002/diff/20001/ios/web/browser_state.mm File ios/web/browser_state.mm (right): https://codereview.chromium.org/1547393002/diff/20001/ios/web/browser_state.mm#newcode37 ios/web/browser_state.mm:37: bool BrowserState::HasActiveStateManager(BrowserState* browser_state) { OPTIONAL: Move this closer to ...
4 years, 11 months ago (2015-12-29 16:09:48 UTC) #3
sdefresne
Please take another look. https://codereview.chromium.org/1547393002/diff/20001/ios/web/browser_state.mm File ios/web/browser_state.mm (right): https://codereview.chromium.org/1547393002/diff/20001/ios/web/browser_state.mm#newcode37 ios/web/browser_state.mm:37: bool BrowserState::HasActiveStateManager(BrowserState* browser_state) { On ...
4 years, 11 months ago (2015-12-29 16:14:59 UTC) #4
shreyasv1
LGTM. Consider adding a small test. https://codereview.chromium.org/1547393002/diff/40001/ios/web/public/browser_state.h File ios/web/public/browser_state.h (right): https://codereview.chromium.org/1547393002/diff/40001/ios/web/public/browser_state.h#newcode37 ios/web/public/browser_state.h:37: // Returns whether ...
4 years, 11 months ago (2015-12-29 16:44:07 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1547393002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1547393002/60001
4 years, 11 months ago (2015-12-29 16:55:43 UTC) #8
sdefresne
Thank you for the review. https://codereview.chromium.org/1547393002/diff/40001/ios/web/public/browser_state.h File ios/web/public/browser_state.h (right): https://codereview.chromium.org/1547393002/diff/40001/ios/web/public/browser_state.h#newcode37 ios/web/public/browser_state.h:37: // Returns whether |browser_state_| ...
4 years, 11 months ago (2015-12-29 16:58:06 UTC) #9
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 11 months ago (2015-12-29 17:11:48 UTC) #10
commit-bot: I haz the power
4 years, 11 months ago (2015-12-29 17:12:52 UTC) #12
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/6eaff4f9763fc6d647b5b31eb5aa6ac18744faee
Cr-Commit-Position: refs/heads/master@{#367076}

Powered by Google App Engine
This is Rietveld 408576698