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

Unified Diff: chrome/browser/ui/webui/chrome_url_data_manager.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: Added static convenience method to ChromeURLDataManager, fixed style issues 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/chrome_url_data_manager.cc
diff --git a/chrome/browser/ui/webui/chrome_url_data_manager.cc b/chrome/browser/ui/webui/chrome_url_data_manager.cc
index 0470153e120593e972014af9f3b852da5826c4ba..b413c35879fd52a86f89792b94073c98f8970458 100644
--- a/chrome/browser/ui/webui/chrome_url_data_manager.cc
+++ b/chrome/browser/ui/webui/chrome_url_data_manager.cc
@@ -17,6 +17,7 @@
#include "base/values.h"
#include "chrome/browser/net/chrome_url_request_context.h"
#include "chrome/browser/profiles/profile.h"
+#include "chrome/browser/ui/webui/chrome_url_data_manager_factory.h"
#include "chrome/browser/ui/webui/chrome_url_data_manager_backend.h"
#include "content/public/browser/browser_thread.h"
#include "grit/platform_locale_settings.h"
@@ -105,6 +106,11 @@ void ChromeURLDataManager::DeleteDataSource(const DataSource* data_source) {
}
// static
+void ChromeURLDataManager::AddDataSource(Profile *profile, DataSource* source) {
Evan Stade 2012/04/24 21:22:14 star on the left
Kyle Horimoto 2012/04/24 22:17:49 Done.
+ ChromeURLDataManagerFactory::GetForProfile(profile)->AddDataSource(source);
+}
+
+// static
bool ChromeURLDataManager::IsScheduledForDeletion(
const DataSource* data_source) {
base::AutoLock lock(g_delete_lock.Get());

Powered by Google App Engine
This is Rietveld 408576698