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

Unified Diff: extensions/browser/warning_service.cc

Issue 698623002: Split WarningService from ExtensionSystem. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: virtual -> override Created 6 years, 1 month 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 | « extensions/browser/warning_service.h ('k') | extensions/browser/warning_service_factory.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/browser/warning_service.cc
diff --git a/extensions/browser/warning_service.cc b/extensions/browser/warning_service.cc
index a6fba18d8ef0885ebe15135317bd4936c4a5925c..11dc84c95d223ff1c0382577da14acd249b25330 100644
--- a/extensions/browser/warning_service.cc
+++ b/extensions/browser/warning_service.cc
@@ -6,8 +6,8 @@
#include "content/public/browser/browser_thread.h"
#include "extensions/browser/extension_registry.h"
-#include "extensions/browser/extension_system.h"
#include "extensions/browser/extensions_browser_client.h"
+#include "extensions/browser/warning_service_factory.h"
#include "extensions/common/extension_set.h"
using content::BrowserThread;
@@ -25,6 +25,11 @@ WarningService::WarningService(content::BrowserContext* browser_context)
WarningService::~WarningService() {}
+// static
+WarningService* WarningService::Get(content::BrowserContext* browser_context) {
+ return WarningServiceFactory::GetForBrowserContext(browser_context);
+}
+
void WarningService::ClearWarnings(
const std::set<Warning::WarningType>& types) {
DCHECK(CalledOnValidThread());
@@ -95,8 +100,7 @@ void WarningService::NotifyWarningsOnUI(
return;
}
- WarningService* warning_service =
- ExtensionSystem::Get(browser_context)->warning_service();
+ WarningService* warning_service = WarningService::Get(browser_context);
warning_service->AddWarnings(warnings);
}
« no previous file with comments | « extensions/browser/warning_service.h ('k') | extensions/browser/warning_service_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698