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

Unified Diff: chrome/browser/extensions/api/declarative/declarative_api.cc

Issue 535203003: Replace Profile* in declarative_api with BrowserContext* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove changes to unit-test; those have to wait until move. Created 6 years, 3 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/extensions/api/declarative/declarative_api.cc
diff --git a/chrome/browser/extensions/api/declarative/declarative_api.cc b/chrome/browser/extensions/api/declarative/declarative_api.cc
index aaf6c8b8f8b9849bf9f9f63365a2fe5c0fe3b3f5..89bc089927df7beee7889fd8da2931f8f1a2103c 100644
--- a/chrome/browser/extensions/api/declarative/declarative_api.cc
+++ b/chrome/browser/extensions/api/declarative/declarative_api.cc
@@ -9,7 +9,6 @@
#include "base/task_runner_util.h"
#include "base/values.h"
#include "chrome/browser/extensions/api/declarative/rules_registry_service.h"
-#include "chrome/browser/profiles/profile.h"
#include "chrome/common/extensions/api/events.h"
#include "content/public/browser/browser_thread.h"
#include "content/public/browser/render_process_host.h"
@@ -94,7 +93,7 @@ bool RulesFunction::RunAsync() {
webview_instance_id ? embedder_process_id : 0, webview_instance_id);
RulesRegistryService* rules_registry_service =
- RulesRegistryService::Get(GetProfile());
+ RulesRegistryService::Get(browser_context());
rules_registry_ = rules_registry_service->GetRulesRegistry(key, event_name);
// Raw access to this function is not available to extensions, therefore
// there should never be a request for a nonexisting rules registry.

Powered by Google App Engine
This is Rietveld 408576698