Index: content/public/test/test_navigation_observer.cc |
diff --git a/content/public/test/test_navigation_observer.cc b/content/public/test/test_navigation_observer.cc |
index f9dd375ab31228dd0d55ea6857479645e2a58a58..bfd7def2617b7a2f7e2b3900df3d692b9f9f3e70 100644 |
--- a/content/public/test/test_navigation_observer.cc |
+++ b/content/public/test/test_navigation_observer.cc |
@@ -92,11 +92,13 @@ void TestNavigationObserver::Wait() { |
} |
void TestNavigationObserver::StartWatchingNewWebContents() { |
- WebContentsImpl::AddCreatedCallback(web_contents_created_callback_); |
+ WebContentsImpl::FriendZone::AddCreatedCallbackForTesting( |
+ web_contents_created_callback_); |
} |
void TestNavigationObserver::StopWatchingNewWebContents() { |
- WebContentsImpl::RemoveCreatedCallback(web_contents_created_callback_); |
+ WebContentsImpl::FriendZone::RemoveCreatedCallbackForTesting( |
+ web_contents_created_callback_); |
} |
void TestNavigationObserver::RegisterAsObserver(WebContents* web_contents) { |