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

Unified Diff: chrome/browser/sync_file_system/drive_backend_v1/drive_file_sync_service_fake_unittest.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: chrome/browser/sync_file_system/drive_backend_v1/drive_file_sync_service_fake_unittest.cc
diff --git a/chrome/browser/sync_file_system/drive_backend_v1/drive_file_sync_service_fake_unittest.cc b/chrome/browser/sync_file_system/drive_backend_v1/drive_file_sync_service_fake_unittest.cc
index 93b55e6c9dbec5fff4b50389c698442eaea2a724..56c745d65c478ff1bfc015fd70bc9a949f3693a3 100644
--- a/chrome/browser/sync_file_system/drive_backend_v1/drive_file_sync_service_fake_unittest.cc
+++ b/chrome/browser/sync_file_system/drive_backend_v1/drive_file_sync_service_fake_unittest.cc
@@ -29,10 +29,10 @@
#include "chrome/test/base/testing_browser_process.h"
#include "chrome/test/base/testing_profile.h"
#include "chrome/test/base/testing_profile_manager.h"
+#include "components/crx_file/id_util.h"
#include "content/public/test/test_browser_thread_bundle.h"
#include "extensions/common/extension.h"
#include "extensions/common/extension_builder.h"
-#include "extensions/common/id_util.h"
#include "google_apis/drive/drive_api_parser.h"
#include "google_apis/drive/gdata_errorcode.h"
#include "google_apis/drive/gdata_wapi_parser.h"
@@ -88,8 +88,8 @@ void DidInitialize(bool* done, SyncStatusCode status, bool created) {
scoped_refptr<const extensions::Extension> AddTestExtension(
ExtensionService* extension_service,
const base::FilePath::StringType& extension_name) {
- std::string id = extensions::id_util::GenerateIdForPath(
- base::FilePath(extension_name));
+ std::string id =
+ crx_file::id_util::GenerateIdForPath(base::FilePath(extension_name));
scoped_refptr<const Extension> extension =
extensions::ExtensionBuilder().SetManifest(
@@ -105,7 +105,7 @@ scoped_refptr<const extensions::Extension> AddTestExtension(
// Converts extension_name to extension ID.
std::string ExtensionNameToId(const std::string& extension_name) {
base::FilePath path = base::FilePath::FromUTF8Unsafe(extension_name);
- return extensions::id_util::GenerateIdForPath(path);
+ return crx_file::id_util::GenerateIdForPath(path);
}
// Converts extension_name to GURL version.

Powered by Google App Engine
This is Rietveld 408576698