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

Unified Diff: chrome/browser/ui/webui/profiler_ui.cc

Issue 10196004: Changed ChromeURLDataManager to a ProfileKeyedService and made a Factory for it. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Fixed style nit Created 8 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: chrome/browser/ui/webui/profiler_ui.cc
diff --git a/chrome/browser/ui/webui/profiler_ui.cc b/chrome/browser/ui/webui/profiler_ui.cc
index 89e8a4a4d668abcaf011a8a796f56e6d773f327c..8d485dea23e2005b8930585d6bd4a339b0a9f8e2 100644
--- a/chrome/browser/ui/webui/profiler_ui.cc
+++ b/chrome/browser/ui/webui/profiler_ui.cc
@@ -11,7 +11,7 @@
// this, enable the following flag to read the webapp's source files
// directly off disk, so all you have to do is refresh the page to
// test the modifications.
-//#define USE_SOURCE_FILES_DIRECTLY
+// #define USE_SOURCE_FILES_DIRECTLY
#include "base/bind.h"
#include "base/memory/scoped_ptr.h"
@@ -20,6 +20,7 @@
#include "chrome/browser/metrics/tracking_synchronizer.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/task_profiler/task_profiler_data_serializer.h"
+#include "chrome/browser/ui/webui/chrome_url_data_manager_factory.h"
#include "chrome/browser/ui/webui/chrome_web_ui_data_source.h"
#include "chrome/common/url_constants.h"
#include "content/public/browser/browser_thread.h"
@@ -153,8 +154,9 @@ ProfilerUI::ProfilerUI(content::WebUI* web_ui)
web_ui->AddMessageHandler(new ProfilerMessageHandler());
// Set up the chrome://profiler/ source.
- Profile::FromWebUI(web_ui)->
- GetChromeURLDataManager()->AddDataSource(CreateProfilerHTMLSource());
+ Profile* profile = Profile::FromWebUI(web_ui);
+ ChromeURLDataManagerFactory::GetForProfile(profile)
Evan Stade 2012/04/24 19:02:43 -> goes at end of line
Kyle Horimoto 2012/04/24 21:09:59 Done.
+ ->AddDataSource(CreateProfilerHTMLSource());
}
ProfilerUI::~ProfilerUI() {

Powered by Google App Engine
This is Rietveld 408576698