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

Unified Diff: chrome/browser/memory/tab_manager.cc

Issue 1997463002: [TabManager] Fix discard only once regression. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2704
Patch Set: Created 4 years, 7 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/memory/tab_manager.cc
diff --git a/chrome/browser/memory/tab_manager.cc b/chrome/browser/memory/tab_manager.cc
index 8e7a88a3256c21ff1b1424c28c75dfe2159ee697..df54610448de626ddb40111d9a36cf60acb03818 100644
--- a/chrome/browser/memory/tab_manager.cc
+++ b/chrome/browser/memory/tab_manager.cc
@@ -167,9 +167,9 @@ void TabManager::Start() {
std::string allow_multiple_discards = variations::GetVariationParamValue(
features::kAutomaticTabDiscarding.name, "AllowMultipleDiscards");
if (allow_multiple_discards == "true")
- discard_once_ = true;
- else
discard_once_ = false;
+ else
+ discard_once_ = true;
// Check the variation parameter to see if a tab is to be protected for an
// amount of time after being backgrounded. The value is in seconds.
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698