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

Unified Diff: chrome/renderer/chrome_content_renderer_client.cc

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
Index: chrome/renderer/chrome_content_renderer_client.cc
diff --git a/chrome/renderer/chrome_content_renderer_client.cc b/chrome/renderer/chrome_content_renderer_client.cc
index 2dbfadb6d614bf53e152af3cb16a48aeafdf7040..86d7bd28312d05570b05f725b6239832db55aaf9 100644
--- a/chrome/renderer/chrome_content_renderer_client.cc
+++ b/chrome/renderer/chrome_content_renderer_client.cc
@@ -28,6 +28,7 @@
#include "chrome/common/chrome_switches.h"
#include "chrome/common/crash_keys.h"
#include "chrome/common/features.h"
+#include "chrome/common/pause_tabs_field_trial.h"
#include "chrome/common/pepper_permission_util.h"
#include "chrome/common/prerender_types.h"
#include "chrome/common/render_messages.h"
@@ -1076,7 +1077,8 @@ bool ChromeContentRendererClient::
#if defined(OS_ANDROID)
return true;
#else
- return false;
+ // TODO(ojan): Plumb the engagement values for this feature to WebViewImpl.
+ return base::FeatureList::IsEnabled(pausetabs::kPauseBackgroundTabsFeature);
#endif
}

Powered by Google App Engine
This is Rietveld 408576698