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

Unified Diff: chromecast/browser/cast_browser_main_parts.cc

Issue 1859213002: Move the thread hop for UMA user actions from content:: to base::. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixing bugs. Created 4 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: chromecast/browser/cast_browser_main_parts.cc
diff --git a/chromecast/browser/cast_browser_main_parts.cc b/chromecast/browser/cast_browser_main_parts.cc
index ed7cd4fe7a60f1d937f0768e7aa7eb8e1aa0eacf..186793a96696af26bdb435cd99b637c82a0cd875 100644
--- a/chromecast/browser/cast_browser_main_parts.cc
+++ b/chromecast/browser/cast_browser_main_parts.cc
@@ -14,6 +14,7 @@
#include "base/macros.h"
#include "base/memory/ptr_util.h"
#include "base/message_loop/message_loop.h"
+#include "base/metrics/user_metrics.h"
#include "base/path_service.h"
#include "base/run_loop.h"
#include "base/thread_task_runner_handle.h"
@@ -443,8 +444,11 @@ void CastBrowserMainParts::PreMainMessageLoopRun() {
::media::InitializeMediaLibrary();
// Initializing metrics service and network delegates must happen after cast
- // service is intialized because CastMetricsServiceClient and
+ // service is initialized because CastMetricsServiceClient and
// CastNetworkDelegate may use components initialized by cast service.
+ base::SetRecordActionTaskRunner(
+ content::BrowserThread::GetMessageLoopProxyForThread(
+ content::BrowserThread::UI));
cast_browser_process_->metrics_service_client()
->Initialize(cast_browser_process_->cast_service());
url_request_context_factory_->InitializeNetworkDelegates();

Powered by Google App Engine
This is Rietveld 408576698