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 2429658e6e4db9f6d1a24025e62db3f059316c0a..f0ec23e162e763572471422dc2a4911cc3105439 100644 |
--- a/chrome/browser/extensions/api/declarative/declarative_api.cc |
+++ b/chrome/browser/extensions/api/declarative/declarative_api.cc |
@@ -42,7 +42,7 @@ bool RulesFunction::RunImpl() { |
rules_registry_ = rules_registry_service->GetRulesRegistry(event_name); |
// Raw access to this function is not available to extensions, therefore |
// there should never be a request for a nonexisting rules registry. |
- EXTENSION_FUNCTION_VALIDATE(rules_registry_); |
+ EXTENSION_FUNCTION_VALIDATE(rules_registry_.get()); |
if (content::BrowserThread::CurrentlyOn(rules_registry_->owner_thread())) { |
bool success = RunImplOnCorrectThread(); |
@@ -52,7 +52,7 @@ bool RulesFunction::RunImpl() { |
content::BrowserThread::GetMessageLoopProxyForThread( |
rules_registry_->owner_thread()); |
base::PostTaskAndReplyWithResult( |
- message_loop_proxy, |
+ message_loop_proxy.get(), |
FROM_HERE, |
base::Bind(&RulesFunction::RunImplOnCorrectThread, this), |
base::Bind(&RulesFunction::SendResponse, this)); |