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

Unified Diff: chrome/browser/chrome_browser_main.h

Issue 10541019: Adding a field trial for testing --force-compositing-mode on 50% of (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 6 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 | chrome/browser/chrome_browser_main.cc » ('j') | chrome/browser/chrome_browser_main.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chrome_browser_main.h
===================================================================
--- chrome/browser/chrome_browser_main.h (revision 140632)
+++ chrome/browser/chrome_browser_main.h (working copy)
@@ -52,6 +52,10 @@
// Add additional ChromeBrowserMainExtraParts.
virtual void AddParts(ChromeBrowserMainExtraParts* parts);
+ static bool in_force_compositing_mode_trial() {
+ return in_force_compositing_mode_trial_;
+ }
Ilya Sherman 2012/06/06 22:31:51 Do we really need to cache this, rather than query
vangelis 2012/06/06 23:44:44 I removed the public method and replaced it with a
Ilya Sherman 2012/06/07 05:27:24 I'd prefer #2, as it only requires global /constan
+
protected:
explicit ChromeBrowserMainParts(
const content::MainFunctionParams& parameters);
@@ -129,6 +133,9 @@
// Field trial for testing domain bound certs.
void DomainBoundCertsFieldTrial();
+ // Field trial for testing compositing on all pages.
+ void ForceCompositingModeFieldTrial();
+
// A collection of field trials intended to test the uniformity and
// correctness of the field trial control, bucketing and reporting systems.
void SetupUniformityFieldTrials();
@@ -215,6 +222,10 @@
// network stack, as this can only be done once.
static bool disable_enforcing_cookie_policies_for_tests_;
+ // Set to true if the force-compositing-mode trial has been enabled for
+ // this client.
+ static bool in_force_compositing_mode_trial_;
+
friend class BrowserMainTest;
FRIEND_TEST_ALL_PREFIXES(BrowserMainTest,
WarmConnectionFieldTrial_WarmestSocket);
« no previous file with comments | « no previous file | chrome/browser/chrome_browser_main.cc » ('j') | chrome/browser/chrome_browser_main.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698