TabContents -> WebContentsImpl, part 19.
BUG=105875
TEST=no change
Review URL: http://codereview.chromium.org/10106022
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@132599 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/content/browser/web_contents/web_contents_impl.cc b/content/browser/web_contents/web_contents_impl.cc
index 053b171..c1949677 100644
--- a/content/browser/web_contents/web_contents_impl.cc
+++ b/content/browser/web_contents/web_contents_impl.cc
@@ -346,9 +346,9 @@
#endif
// OnCloseStarted isn't called in unit tests.
- if (!tab_close_start_time_.is_null()) {
+ if (!close_start_time_.is_null()) {
UMA_HISTOGRAM_TIMES("Tab.Close",
- base::TimeTicks::Now() - tab_close_start_time_);
+ base::TimeTicks::Now() - close_start_time_);
}
FOR_EACH_OBSERVER(WebContentsObserver,
@@ -1250,8 +1250,8 @@
}
void WebContentsImpl::OnCloseStarted() {
- if (tab_close_start_time_.is_null())
- tab_close_start_time_ = base::TimeTicks::Now();
+ if (close_start_time_.is_null())
+ close_start_time_ = base::TimeTicks::Now();
}
bool WebContentsImpl::ShouldAcceptDragAndDrop() const {
@@ -2584,7 +2584,7 @@
// spinning, since we forced it to start spinning in Navigate.
DidStopLoading();
- tab_close_start_time_ = base::TimeTicks();
+ close_start_time_ = base::TimeTicks();
}
is_showing_before_unload_dialog_ = false;
static_cast<RenderViewHostImpl*>(