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

Unified Diff: chrome/renderer/chrome_render_process_observer.h

Issue 700953002: Send all field trials from the browser. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@finch4
Patch Set: Added test StatesStringFormat. Created 6 years, 1 month 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_render_process_observer.h
diff --git a/chrome/renderer/chrome_render_process_observer.h b/chrome/renderer/chrome_render_process_observer.h
index 75d8415e3997d53fade3b2cf2047456ffe085501..4fe3074d4e5ae2a5ea642814a9af9b75f59f6667 100644
--- a/chrome/renderer/chrome_render_process_observer.h
+++ b/chrome/renderer/chrome_render_process_observer.h
@@ -10,6 +10,7 @@
#include "base/compiler_specific.h"
#include "base/files/file_path.h"
#include "base/memory/scoped_ptr.h"
+#include "base/metrics/field_trial.h"
#include "components/content_settings/core/common/content_settings.h"
#include "content/public/renderer/render_process_observer.h"
@@ -25,7 +26,8 @@ class ResourceDispatcherDelegate;
// a RenderView) for Chrome specific messages that the content layer doesn't
// happen. If a few messages are related, they should probably have their own
// observer.
-class ChromeRenderProcessObserver : public content::RenderProcessObserver {
+class ChromeRenderProcessObserver : public content::RenderProcessObserver,
+ public base::FieldTrialList::Observer {
public:
explicit ChromeRenderProcessObserver(
ChromeContentRendererClient* client);
@@ -38,11 +40,15 @@ class ChromeRenderProcessObserver : public content::RenderProcessObserver {
const RendererContentSettingRules* content_setting_rules() const;
private:
- // RenderProcessObserver implementation.
James Hawkins 2015/01/05 21:05:05 Please don't change the existing style; added code
Georges Khalil 2015/01/05 21:28:58 Done.
+ // RenderProcessObserver:
bool OnControlMessageReceived(const IPC::Message& message) override;
void WebKitInitialized() override;
void OnRenderProcessShutdown() override;
+ // base::FieldTrialList::Observer:
+ void OnFieldTrialGroupFinalized(const std::string& trial_name,
+ const std::string& group_name) override;
+
void OnSetIsIncognitoProcess(bool is_incognito_process);
void OnSetContentSettingsForCurrentURL(
const GURL& url, const ContentSettings& content_settings);

Powered by Google App Engine
This is Rietveld 408576698