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

Unified Diff: extensions/renderer/user_script_set_manager.cc

Issue 481433005: Extensions: Move id_util functions to crx_file component. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: revert last patchset. function returns Extension* and can't use an assert. 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
« no previous file with comments | « extensions/extensions.gyp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/renderer/user_script_set_manager.cc
diff --git a/extensions/renderer/user_script_set_manager.cc b/extensions/renderer/user_script_set_manager.cc
index 6aa22d91dc8351ceac92d7d4889790c521eb0163..6f4679211b96f2f43f81cf2a6c306da8046f6278 100644
--- a/extensions/renderer/user_script_set_manager.cc
+++ b/extensions/renderer/user_script_set_manager.cc
@@ -4,6 +4,7 @@
#include "extensions/renderer/user_script_set_manager.h"
+#include "components/crx_file/id_util.h"
#include "content/public/renderer/render_thread.h"
#include "extensions/common/extension_messages.h"
#include "extensions/renderer/dispatcher.h"
@@ -83,7 +84,7 @@ void UserScriptSetManager::OnUpdateUserScripts(
for (std::set<std::string>::const_iterator iter = changed_extensions.begin();
iter != changed_extensions.end();
++iter) {
- if (!Extension::IdIsValid(*iter)) {
+ if (!crx_file::id_util::IdIsValid(*iter)) {
NOTREACHED() << "Invalid extension id: " << *iter;
return;
}
« no previous file with comments | « extensions/extensions.gyp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698