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

Unified Diff: android_webview/browser/aw_browser_context.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: Moved call to SetRecordActionTaskRunner. 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
« no previous file with comments | « no previous file | base/metrics/user_metrics.h » ('j') | chromecast/browser/cast_browser_main_parts.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: android_webview/browser/aw_browser_context.cc
diff --git a/android_webview/browser/aw_browser_context.cc b/android_webview/browser/aw_browser_context.cc
index 3cd1128525fcd8513f4d0e7ee95ae2865ca447fc..b1a1fdf9493083215b034fbfca45054574f7a54a 100644
--- a/android_webview/browser/aw_browser_context.cc
+++ b/android_webview/browser/aw_browser_context.cc
@@ -18,6 +18,7 @@
#include "android_webview/common/aw_content_client.h"
#include "base/base_paths_android.h"
#include "base/bind.h"
+#include "base/metrics/user_metrics.h"
#include "base/path_service.h"
#include "components/autofill/core/common/autofill_pref_names.h"
#include "components/data_reduction_proxy/core/browser/data_reduction_proxy_compression_stats.h"
@@ -259,6 +260,8 @@ void AwBrowserContext::PreMainMessageLoopRun() {
const FilePath guid_file_path =
GetPath().Append(FILE_PATH_LITERAL("metrics_guid"));
+ base::SetRecordActionTaskRunner(
+ BrowserThread::GetMessageLoopProxyForThread(BrowserThread::UI));
AwMetricsServiceClient::GetInstance()->Initialize(
user_pref_service_.get(),
content::BrowserContext::GetDefaultStoragePartition(this)->
« no previous file with comments | « no previous file | base/metrics/user_metrics.h » ('j') | chromecast/browser/cast_browser_main_parts.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698