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

Unified Diff: ios/clean/chrome/browser/ui/web_contents/web_coordinator.mm

Issue 2948463002: [iOS Clean] Removed old overlay implementation.
Patch Set: rebase & Mark's comments Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: ios/clean/chrome/browser/ui/web_contents/web_coordinator.mm
diff --git a/ios/clean/chrome/browser/ui/web_contents/web_coordinator.mm b/ios/clean/chrome/browser/ui/web_contents/web_coordinator.mm
index 2ff4c03b9123cf27368ded9d6dcd1c1a0dfd06f7..9b8f4ed7780d27f6d3cc03c39a693d3639a13bba 100644
--- a/ios/clean/chrome/browser/ui/web_contents/web_coordinator.mm
+++ b/ios/clean/chrome/browser/ui/web_contents/web_coordinator.mm
@@ -9,8 +9,8 @@
#import "ios/clean/chrome/browser/ui/commands/context_menu_commands.h"
#import "ios/clean/chrome/browser/ui/context_menu/context_menu_context_impl.h"
#import "ios/clean/chrome/browser/ui/context_menu/web_context_menu_coordinator.h"
+#import "ios/clean/chrome/browser/ui/overlay_service/browser_coordinator+overlay_support.h"
#import "ios/clean/chrome/browser/ui/overlay_service/overlay_service.h"
-#import "ios/clean/chrome/browser/ui/overlay_service/overlay_service_factory.h"
#import "ios/clean/chrome/browser/ui/web_contents/web_contents_mediator.h"
#import "ios/clean/chrome/browser/ui/web_contents/web_contents_view_controller.h"
#import "ios/shared/chrome/browser/ui/browser_list/browser.h"
@@ -59,17 +59,13 @@ - (void)start {
self.mediator.webStateList = &self.browser->web_state_list();
[super start];
// Notify the OverlayService that this coordinator is displaying |webState|.
- OverlayServiceFactory::GetInstance()
- ->GetForBrowserState(self.browser->browser_state())
- ->SetWebStateParentCoordinator(self, self.webState);
+ self.overlayService->SetWebStateParentCoordinator(self, self.webState);
}
- (void)stop {
// Notify the OverlayService that this coordinator is no longer displaying
// |webState|.
- OverlayServiceFactory::GetInstance()
- ->GetForBrowserState(self.browser->browser_state())
- ->SetWebStateParentCoordinator(nil, self.webState);
+ self.overlayService->SetWebStateParentCoordinator(nil, self.webState);
[super stop];
[self.mediator disconnect];
}

Powered by Google App Engine
This is Rietveld 408576698