Index: content/test/web_contents_observer_sanity_checker.cc |
diff --git a/content/test/web_contents_observer_sanity_checker.cc b/content/test/web_contents_observer_sanity_checker.cc |
index 74f2327f08f3d4481739d4e262f5fc426374db02..8ac2dd0f199b84158997e211d665083696d95ce3 100644 |
--- a/content/test/web_contents_observer_sanity_checker.cc |
+++ b/content/test/web_contents_observer_sanity_checker.cc |
@@ -332,25 +332,10 @@ |
CHECK(active_media_players_.empty()); |
} |
-void WebContentsObserverSanityChecker::DidStartLoading() { |
- // TODO(clamy): add checks for the loading state in the rest of observer |
- // methods. |
- CHECK(!is_loading_); |
- CHECK(web_contents()->IsLoading()); |
- is_loading_ = true; |
-} |
- |
-void WebContentsObserverSanityChecker::DidStopLoading() { |
- CHECK(is_loading_); |
- CHECK(!web_contents()->IsLoading()); |
- is_loading_ = false; |
-} |
- |
WebContentsObserverSanityChecker::WebContentsObserverSanityChecker( |
WebContents* web_contents) |
- : WebContentsObserver(web_contents), |
- is_loading_(false), |
- web_contents_destroyed_(false) {} |
+ : WebContentsObserver(web_contents), web_contents_destroyed_(false) { |
+} |
WebContentsObserverSanityChecker::~WebContentsObserverSanityChecker() { |
CHECK(web_contents_destroyed_); |