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

Unified Diff: content/public/test/test_navigation_observer.cc

Issue 803873004: ContentBrowserSanityChecker (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add semicolon. Created 6 years 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
« no previous file with comments | « content/public/test/content_browser_test_utils.cc ('k') | content/public/test/test_renderer_host.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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) {
« no previous file with comments | « content/public/test/content_browser_test_utils.cc ('k') | content/public/test/test_renderer_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698