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

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

Issue 2345763002: Fix tabs duplication when restoring last closed window. (Closed)
Patch Set: Created 4 years, 3 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_live_tab_context.cc
diff --git a/chrome/browser/ui/browser_live_tab_context.cc b/chrome/browser/ui/browser_live_tab_context.cc
index 40892e261ed5cb7523550112b62e3e05a7a7459a..6222d078b8904f529c5f33a6079edb443717c85d 100644
--- a/chrome/browser/ui/browser_live_tab_context.cc
+++ b/chrome/browser/ui/browser_live_tab_context.cc
@@ -108,7 +108,9 @@ sessions::LiveTabContext* BrowserLiveTabContext::Create(
const std::string& app_name) {
Browser* browser;
if (app_name.empty()) {
- browser = new Browser(Browser::CreateParams(profile));
+ auto params = Browser::CreateParams(profile);
+ params.dont_restore = true;
+ browser = new Browser(params);
} else {
// Only trusted app popup windows should ever be restored.
browser = new Browser(Browser::CreateParams::CreateForApp(
« chrome/browser/sessions/tab_restore_browsertest.cc ('K') | « chrome/browser/ui/browser.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698