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

Unified Diff: content/browser/web_contents/web_contents_impl.cc

Issue 10106022: TabContents -> WebContentsImpl, part 19. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix Created 8 years, 8 months 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/browser/web_contents/web_contents_impl.cc
diff --git a/content/browser/web_contents/web_contents_impl.cc b/content/browser/web_contents/web_contents_impl.cc
index 8cf33aa3b8d1d32439b95b87e651411162c720f2..8c4e03d680ad91b7b192999623b5253b5519f612 100644
--- a/content/browser/web_contents/web_contents_impl.cc
+++ b/content/browser/web_contents/web_contents_impl.cc
@@ -346,9 +346,9 @@ WebContentsImpl::~WebContentsImpl() {
#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 @@ base::TimeTicks WebContentsImpl::GetNewTabStartTime() const {
}
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 @@ void WebContentsImpl::OnDialogClosed(RenderViewHost* rvh,
// 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*>(
« no previous file with comments | « content/browser/web_contents/web_contents_impl.h ('k') | content/browser/web_contents/web_contents_view_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698