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

Unified Diff: content/public/test/content_browser_test_utils.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
Index: content/public/test/content_browser_test_utils.cc
diff --git a/content/public/test/content_browser_test_utils.cc b/content/public/test/content_browser_test_utils.cc
index 3fc0971cef12990d8d827549de6a9540095cdbe7..ff323c41145a02b9394867072e36e22360718f6e 100644
--- a/content/public/test/content_browser_test_utils.cc
+++ b/content/public/test/content_browser_test_utils.cc
@@ -136,11 +136,13 @@ WebContentsAddedObserver::WebContentsAddedObserver()
&WebContentsAddedObserver::WebContentsCreated,
base::Unretained(this))),
web_contents_(NULL) {
- WebContentsImpl::AddCreatedCallback(web_contents_created_callback_);
+ WebContentsImpl::FriendZone::AddCreatedCallbackForTesting(
+ web_contents_created_callback_);
}
WebContentsAddedObserver::~WebContentsAddedObserver() {
- WebContentsImpl::RemoveCreatedCallback(web_contents_created_callback_);
+ WebContentsImpl::FriendZone::RemoveCreatedCallbackForTesting(
+ web_contents_created_callback_);
}
void WebContentsAddedObserver::WebContentsCreated(WebContents* web_contents) {
« no previous file with comments | « content/public/test/content_browser_sanity_checker.cc ('k') | content/public/test/test_navigation_observer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698