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

Unified Diff: apps/shell/browser/shell_extension_system.cc

Issue 236213002: Move most of extension_file_util.cc into extensions/common/file_util.cc (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: zip (file-util) Created 6 years, 8 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: apps/shell/browser/shell_extension_system.cc
diff --git a/apps/shell/browser/shell_extension_system.cc b/apps/shell/browser/shell_extension_system.cc
index 04c047d01c91244bd1d7a37fcee398a154886d77..ce7d3ac9f5eae7b47525e619cad015f6dd9c730f 100644
--- a/apps/shell/browser/shell_extension_system.cc
+++ b/apps/shell/browser/shell_extension_system.cc
@@ -9,7 +9,6 @@
#include "apps/shell/browser/shell_app_runtime_api.h"
#include "base/files/file_path.h"
#include "chrome/browser/chrome_notification_types.h"
-#include "chrome/common/extensions/extension_file_util.h"
#include "content/public/browser/browser_context.h"
#include "content/public/browser/browser_thread.h"
#include "content/public/browser/notification_details.h"
@@ -23,6 +22,7 @@
#include "extensions/browser/process_manager.h"
#include "extensions/browser/quota_service.h"
#include "extensions/browser/runtime_data.h"
+#include "extensions/common/file_util.h"
using content::BrowserContext;
using content::BrowserThread;
@@ -38,11 +38,8 @@ ShellExtensionSystem::~ShellExtensionSystem() {
bool ShellExtensionSystem::LoadAndLaunchApp(const base::FilePath& app_dir) {
std::string load_error;
- scoped_refptr<Extension> extension =
- extension_file_util::LoadExtension(app_dir,
- extensions::Manifest::COMMAND_LINE,
- Extension::NO_FLAGS,
- &load_error);
+ scoped_refptr<Extension> extension = file_util::LoadExtension(
+ app_dir, Manifest::COMMAND_LINE, Extension::NO_FLAGS, &load_error);
if (!extension) {
LOG(ERROR) << "Loading extension at " << app_dir.value()
<< " failed with: " << load_error;

Powered by Google App Engine
This is Rietveld 408576698