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

Unified Diff: chrome/renderer/chrome_render_thread_observer.cc

Issue 2453313004: Convert FieldTrialActivated to use mojo. (Closed)
Patch Set: Convert FieldTrialActivated to use mojo. Created 4 years 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_thread_observer.cc
diff --git a/chrome/renderer/chrome_render_thread_observer.cc b/chrome/renderer/chrome_render_thread_observer.cc
index bf5b25eeda466b010a01c5035d390fd087d5d9b8..3b96a1577756971a9e423e4953ee1101aaf440de 100644
--- a/chrome/renderer/chrome_render_thread_observer.cc
+++ b/chrome/renderer/chrome_render_thread_observer.cc
@@ -29,6 +29,7 @@
#include "build/build_config.h"
#include "chrome/common/child_process_logging.h"
#include "chrome/common/chrome_paths.h"
+#include "chrome/common/field_trial_recorder.mojom.h"
#include "chrome/common/media/media_resource_provider.h"
#include "chrome/common/net/net_resource_provider.h"
#include "chrome/common/render_messages.h"
@@ -48,6 +49,7 @@
#include "mojo/public/cpp/bindings/strong_binding.h"
#include "net/base/net_errors.h"
#include "net/base/net_module.h"
+#include "services/service_manager/public/cpp/interface_provider.h"
#include "services/service_manager/public/cpp/interface_registry.h"
#include "third_party/WebKit/public/web/WebCache.h"
#include "third_party/WebKit/public/web/WebDocument.h"
@@ -293,8 +295,10 @@ void ChromeRenderThreadObserver::OnRenderProcessShutdown() {
void ChromeRenderThreadObserver::OnFieldTrialGroupFinalized(
const std::string& trial_name,
const std::string& group_name) {
- content::RenderThread::Get()->Send(
- new ChromeViewHostMsg_FieldTrialActivated(trial_name));
+ chrome::mojom::FieldTrialRecorderPtr field_trial_recorder;
+ content::RenderThread::Get()->GetRemoteInterfaces()->GetInterface(
+ &field_trial_recorder);
+ field_trial_recorder->FieldTrialActivated(trial_name);
}
void ChromeRenderThreadObserver::OnSetIsIncognitoProcess(
« chrome/common/render_messages.h ('K') | « chrome/renderer/chrome_content_renderer_client.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698