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

Unified Diff: chrome/common/pause_tabs_field_trial.h

Issue 2805683003: Allow for pausing background tabs on desktop via about:flags. (Closed)
Patch Set: Use base::FeatureList and include the engagement values. Created 3 years, 8 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 | « chrome/common/BUILD.gn ('k') | chrome/renderer/chrome_content_renderer_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/pause_tabs_field_trial.h
diff --git a/chrome/common/pause_tabs_field_trial.h b/chrome/common/pause_tabs_field_trial.h
new file mode 100644
index 0000000000000000000000000000000000000000..f98061159f55f2e7921113157d9bf8ed4bfdcf0c
--- /dev/null
+++ b/chrome/common/pause_tabs_field_trial.h
@@ -0,0 +1,26 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_COMMON_PAUSE_TABS_FIELD_TRIAL_H_
+#define CHROME_COMMON_PAUSE_TABS_FIELD_TRIAL_H_
+
+#include "base/feature_list.h"
+
+namespace pausetabs {
+
+const base::Feature kPauseBackgroundTabsFeature{
+ "PauseBackgroundTabs", base::FEATURE_DISABLED_BY_DEFAULT};
+
+const char kPauseBackgroundTabsFeatureParameterName[] = "pause-background-tabs";
+
+// Mode values.
+const char kPauseBackgroundTabsFeatureModeParameterMinimal[] = "minimal";
+const char kPauseBackgroundTabsFeatureModeParameterLow[] = "low";
+const char kPauseBackgroundTabsFeatureModeParameterMedium[] = "medium";
+const char kPauseBackgroundTabsFeatureModeParameterHigh[] = "high";
+const char kPauseBackgroundTabsFeatureModeParameterMax[] = "max";
Alexei Svitkine (slow) 2017/04/10 20:44:49 Nit: Given all of these already in pausetabs names
+
+} // namespace pausetabs
+
+#endif // CHROME_COMMON_PAUSE_TABS_FIELD_TRIAL_H_
« no previous file with comments | « chrome/common/BUILD.gn ('k') | chrome/renderer/chrome_content_renderer_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698