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

Issue 2815913004: Use ScopedObserver with WebStateListObserverBridge in FIP mediator (Closed)

Created:
3 years, 8 months ago by lpromero
Modified:
3 years, 8 months ago
Reviewers:
sdefresne
CC:
chromium-reviews, marq+scrutinize_chromium.org, ios-reviews+chrome_chromium.org, ios-reviews_chromium.org, pkl (ping after 24h if needed), noyau+watch_chromium.org, ios-reviews+clean_chromium.org, marq+watch_chromium.org, lpromero+watch_chromium.org, sdefresne+watch_chromium.org, rohitrao (ping after 24h)
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Use ScopedObserver with WebStateListObserverBridge in FIP mediator BUG=none R=sdefresne@chromium.org CC=rohitrao@chromium.org Review-Url: https://codereview.chromium.org/2815913004 Cr-Commit-Position: refs/heads/master@{#465593} Committed: https://chromium.googlesource.com/chromium/src/+/bf434a47ac992ba878ab24524548bba55e967a0a

Patch Set 1 #

Patch Set 2 : Null initialize the we_state_list_ when not used. #

Patch Set 3 : Use ScopedObserver #

Patch Set 4 : Fix scoped #

Total comments: 2

Patch Set 5 : Fix scoped #

Total comments: 2

Patch Set 6 : Move ivar layout #

Patch Set 7 : Fix reference #

Unified diffs Side-by-side diffs Delta from patch set Stats (+7 lines, -5 lines) Patch
M ios/clean/chrome/browser/ui/find_in_page/find_in_page_mediator.mm View 1 2 3 4 5 6 3 chunks +7 lines, -5 lines 0 comments Download

Messages

Total messages: 44 (34 generated)
lpromero
3 years, 8 months ago (2017-04-13 08:48:50 UTC) #1
sdefresne
not lgtm WebStateListObserver can observe multiple WebStateLists like all observers (except WebStateObserver which has a ...
3 years, 8 months ago (2017-04-18 10:02:43 UTC) #11
lpromero
Updated to use ScopedObserver.
3 years, 8 months ago (2017-04-19 11:37:01 UTC) #16
lpromero
Fixed the issue with the scoped observer where I passed in a MakeUnique.get().
3 years, 8 months ago (2017-04-19 13:03:10 UTC) #21
sdefresne
https://codereview.chromium.org/2815913004/diff/60001/ios/clean/chrome/browser/ui/find_in_page/find_in_page_mediator.mm File ios/clean/chrome/browser/ui/find_in_page/find_in_page_mediator.mm (right): https://codereview.chromium.org/2815913004/diff/60001/ios/clean/chrome/browser/ui/find_in_page/find_in_page_mediator.mm#newcode39 ios/clean/chrome/browser/ui/find_in_page/find_in_page_mediator.mm:39: std::unique_ptr<ScopedObserver<WebStateList, WebStateListObserverBridge>> Move this below the declaration of _webStateListObserver ...
3 years, 8 months ago (2017-04-19 13:19:42 UTC) #24
sdefresne
https://codereview.chromium.org/2815913004/diff/80001/ios/clean/chrome/browser/ui/find_in_page/find_in_page_mediator.mm File ios/clean/chrome/browser/ui/find_in_page/find_in_page_mediator.mm (right): https://codereview.chromium.org/2815913004/diff/80001/ios/clean/chrome/browser/ui/find_in_page/find_in_page_mediator.mm#newcode63 ios/clean/chrome/browser/ui/find_in_page/find_in_page_mediator.mm:63: &_webStateListObserver); This should be _webStateList.get()
3 years, 8 months ago (2017-04-19 13:39:19 UTC) #29
lpromero
https://codereview.chromium.org/2815913004/diff/60001/ios/clean/chrome/browser/ui/find_in_page/find_in_page_mediator.mm File ios/clean/chrome/browser/ui/find_in_page/find_in_page_mediator.mm (right): https://codereview.chromium.org/2815913004/diff/60001/ios/clean/chrome/browser/ui/find_in_page/find_in_page_mediator.mm#newcode39 ios/clean/chrome/browser/ui/find_in_page/find_in_page_mediator.mm:39: std::unique_ptr<ScopedObserver<WebStateList, WebStateListObserverBridge>> On 2017/04/19 13:19:42, sdefresne wrote: > Move ...
3 years, 8 months ago (2017-04-19 14:09:36 UTC) #38
sdefresne
lgtm
3 years, 8 months ago (2017-04-19 14:14:45 UTC) #39
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2815913004/120001
3 years, 8 months ago (2017-04-19 14:16:32 UTC) #41
commit-bot: I haz the power
3 years, 8 months ago (2017-04-19 14:21:24 UTC) #44
Message was sent while issue was closed.
Committed patchset #7 (id:120001) as
https://chromium.googlesource.com/chromium/src/+/bf434a47ac992ba878ab24524548...

Powered by Google App Engine
This is Rietveld 408576698