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

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

Issue 192283002: Revert 255858 "Simplify the user agent code some more since afte..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: 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: trunk/src/chrome/browser/task_profiler/task_profiler_data_serializer.cc
===================================================================
--- trunk/src/chrome/browser/task_profiler/task_profiler_data_serializer.cc (revision 255866)
+++ trunk/src/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 "chrome/common/chrome_content_client.h"
+#include "content/public/common/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", GetUserAgent());
+ root->SetString("userAgent", content::GetUserAgent(GURL()));
// 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