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

Unified Diff: chrome/browser/ui/browser_instant_controller.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: chrome/browser/ui/browser_instant_controller.cc
diff --git a/chrome/browser/ui/browser_instant_controller.cc b/chrome/browser/ui/browser_instant_controller.cc
index 895303e846827f05b99fdefb40218eaf21fedeeb..831297221caa70d5f62698bb261ae2a3879cff63 100644
--- a/chrome/browser/ui/browser_instant_controller.cc
+++ b/chrome/browser/ui/browser_instant_controller.cc
@@ -91,13 +91,13 @@ void BrowserInstantController::ShowInstant(TabContents* preview_contents) {
// TODO(beng): investigate if we can avoid this and instead rely on the
// visibility of the WebContentsView
chrome::GetActiveWebContents(browser_)->WasHidden();
- preview_contents->web_contents()->WasRestored();
+ preview_contents->web_contents()->WasShown();
}
void BrowserInstantController::HideInstant() {
browser_->window()->HideInstant();
if (chrome::GetActiveWebContents(browser_))
- chrome::GetActiveWebContents(browser_)->WasRestored();
+ chrome::GetActiveWebContents(browser_)->WasShown();
if (instant_->GetPreviewContents())
instant_->GetPreviewContents()->web_contents()->WasHidden();
}
« no previous file with comments | « chrome/browser/ui/blocked_content/blocked_content_container.cc ('k') | chrome/browser/ui/cocoa/tabs/tab_strip_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698