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

Unified Diff: chrome/browser/extensions/all_urls_apitest.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
Index: chrome/browser/extensions/all_urls_apitest.cc
diff --git a/chrome/browser/extensions/all_urls_apitest.cc b/chrome/browser/extensions/all_urls_apitest.cc
index 8b59028e779d3ed724160aedd19ed4b3a86b4779..b83a7f6dee6a7421691f87ae186e19072d84990c 100644
--- a/chrome/browser/extensions/all_urls_apitest.cc
+++ b/chrome/browser/extensions/all_urls_apitest.cc
@@ -10,10 +10,10 @@
#include "chrome/browser/ui/browser.h"
#include "chrome/test/base/test_switches.h"
#include "chrome/test/base/ui_test_utils.h"
+#include "components/crx_file/id_util.h"
#include "extensions/browser/extension_system.h"
#include "extensions/common/extension.h"
#include "extensions/common/extensions_client.h"
-#include "extensions/common/id_util.h"
const std::string kAllUrlsTarget =
"files/extensions/api_test/all_urls/index.html";
@@ -41,8 +41,8 @@ IN_PROC_BROWSER_TEST_F(AllUrlsApiTest, MAYBE_WhitelistedExtension) {
// Then add the two extensions to the whitelist.
extensions::ExtensionsClient::ScriptingWhitelist whitelist;
- whitelist.push_back(extensions::id_util::GenerateIdForPath(extension_dir1));
- whitelist.push_back(extensions::id_util::GenerateIdForPath(extension_dir2));
+ whitelist.push_back(crx_file::id_util::GenerateIdForPath(extension_dir1));
+ whitelist.push_back(crx_file::id_util::GenerateIdForPath(extension_dir2));
extensions::ExtensionsClient::Get()->SetScriptingWhitelist(whitelist);
// Then load extensions.

Powered by Google App Engine
This is Rietveld 408576698