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/extension_message_filter.cc

Issue 481433005: Extensions: Move id_util functions to crx_file component. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: update GN build Created 6 years, 4 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: extensions/browser/extension_message_filter.cc
diff --git a/extensions/browser/extension_message_filter.cc b/extensions/browser/extension_message_filter.cc
index c9c6c9b4c188a7b4a46a5ad97abc0dcabdfc4096..7ae576ff2a4e5ed3d77379e14685a201cda55eec 100644
--- a/extensions/browser/extension_message_filter.cc
+++ b/extensions/browser/extension_message_filter.cc
@@ -4,6 +4,7 @@
#include "extensions/browser/extension_message_filter.h"
+#include "components/crx_file/id_util.h"
#include "content/public/browser/browser_thread.h"
#include "content/public/browser/render_process_host.h"
#include "content/public/browser/resource_dispatcher_host.h"
@@ -105,7 +106,7 @@ void ExtensionMessageFilter::OnExtensionAddListener(
if (!router)
return;
- if (Extension::IdIsValid(extension_id)) {
+ if (crx_file::id_util::IdIsValid(extension_id)) {
router->AddEventListener(event_name, process, extension_id);
} else if (listener_url.is_valid()) {
router->AddEventListenerForURL(event_name, process, listener_url);
@@ -126,7 +127,7 @@ void ExtensionMessageFilter::OnExtensionRemoveListener(
if (!router)
return;
- if (Extension::IdIsValid(extension_id)) {
+ if (crx_file::id_util::IdIsValid(extension_id)) {
router->RemoveEventListener(event_name, process, extension_id);
} else if (listener_url.is_valid()) {
router->RemoveEventListenerForURL(event_name, process, listener_url);

Powered by Google App Engine
This is Rietveld 408576698