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

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

Issue 10696158: Rename WasRestored to WasShown across all uses. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Bring to ToT to commit Created 8 years, 5 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 5b5d4bde5fc4e9945f8d3fc8fbb449c4a776fa6b..1fa6122d001c777a8d8de372ef3ac760425bab1c 100644
--- a/content/browser/web_contents/web_contents_impl.cc
+++ b/content/browser/web_contents/web_contents_impl.cc
@@ -936,12 +936,12 @@ base::TimeTicks WebContentsImpl::GetLastSelectedTime() const {
return last_selected_time_;
}
-void WebContentsImpl::WasRestored() {
+void WebContentsImpl::WasShown() {
controller_.SetActive(true);
RenderWidgetHostViewPort* rwhv =
RenderWidgetHostViewPort::FromRWHV(GetRenderWidgetHostView());
if (rwhv) {
- rwhv->WasRestored();
+ rwhv->WasShown();
#if defined(OS_MACOSX)
rwhv->SetActive(true);
#endif
@@ -949,7 +949,7 @@ void WebContentsImpl::WasRestored() {
last_selected_time_ = base::TimeTicks::Now();
- FOR_EACH_OBSERVER(WebContentsObserver, observers_, WasRestored());
+ FOR_EACH_OBSERVER(WebContentsObserver, observers_, WasShown());
// The resize rect might have changed while this was inactive -- send the new
// one to make sure it's up to date.
« no previous file with comments | « content/browser/web_contents/web_contents_impl.h ('k') | content/browser/web_contents/web_contents_view_aura.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698