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

Unified Diff: chrome/browser/ui/browser_tabrestore.cc

Issue 1743143002: Remove WebContents::Was{Hidden,Shown}() from the content public interface Base URL: https://chromium.googlesource.com/chromium/src.git@20160225-WebContents-DicardCursorRects
Patch Set: Fix androido Created 4 years, 10 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_tabrestore.cc
diff --git a/chrome/browser/ui/browser_tabrestore.cc b/chrome/browser/ui/browser_tabrestore.cc
index 1fa8d7e32628c3539e4e4e761a02832b85c5a28b..5bb6d635555fdd9e9ef39c8c4ba0adc79dcd4f16 100644
--- a/chrome/browser/ui/browser_tabrestore.cc
+++ b/chrome/browser/ui/browser_tabrestore.cc
@@ -129,7 +129,11 @@ content::WebContents* AddRestoredTab(
if (size.IsEmpty())
size = browser->window()->GetRestoredBounds().size();
ResizeWebContents(web_contents, size);
- web_contents->WasHidden();
+
+ // CreateRestoredTab() would have passed the correct |initially_hidden| via
+ // the WebContents::CreateParams, so this line shouldn't be necessary.
+ // TODO(tapted): Delete this line and see what breaks.
+ web_contents->MarkBackgrounded();
}
SessionService* session_service =
SessionServiceFactory::GetForProfileIfExisting(browser->profile());

Powered by Google App Engine
This is Rietveld 408576698