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

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

Issue 1980143002: [TabManager] Fix discard only once regression. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
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 f89f8e485d3ec9b492c5bac5f113e00e77bf5392..eef6d4d0351e243cab575989a2875caf4a4bf729 100644
--- a/chrome/browser/memory/tab_manager.cc
+++ b/chrome/browser/memory/tab_manager.cc
@@ -170,9 +170,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