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

Unified Diff: chrome/browser/task_profiler/task_profiler_data_serializer.cc

Issue 191093002: Simplify the user agent code some more since after r255534 it's not affected by the site's URL. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: patchset 15 which works Created 6 years, 9 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: chrome/browser/task_profiler/task_profiler_data_serializer.cc
===================================================================
--- chrome/browser/task_profiler/task_profiler_data_serializer.cc (revision 255867)
+++ chrome/browser/task_profiler/task_profiler_data_serializer.cc (working copy)
@@ -9,7 +9,7 @@
#include "base/json/json_string_value_serializer.h"
#include "base/time/time.h"
#include "base/tracked_objects.h"
-#include "content/public/common/content_client.h"
+#include "chrome/common/chrome_content_client.h"
#include "content/public/common/process_type.h"
#include "url/gurl.h"
@@ -140,7 +140,7 @@
base::ListValue* per_process_data = new base::ListValue();
root->SetInteger("version", 1);
- root->SetString("userAgent", content::GetUserAgent(GURL()));
+ root->SetString("userAgent", GetUserAgent());
// TODO(ramant): Collect data from other processes, then add that data to the
// 'per_process_data' array here. Should leverage the TrackingSynchronizer

Powered by Google App Engine
This is Rietveld 408576698