| Index: chrome/browser/extensions/extension_management_api.cc
|
| diff --git a/chrome/browser/extensions/extension_management_api.cc b/chrome/browser/extensions/extension_management_api.cc
|
| index 27caab33eba72b1c06ec13d9b421b83b8177f5d3..e51c7478fcf2410ea6f88486016f16a7980d5fba 100644
|
| --- a/chrome/browser/extensions/extension_management_api.cc
|
| +++ b/chrome/browser/extensions/extension_management_api.cc
|
| @@ -10,11 +10,14 @@
|
| #include "base/basictypes.h"
|
| #include "base/json/json_writer.h"
|
| #include "base/string_number_conversions.h"
|
| +#include "base/string_util.h"
|
| #include "chrome/browser/browser.h"
|
| #include "chrome/browser/extensions/extension_event_names.h"
|
| #include "chrome/browser/extensions/extension_message_service.h"
|
| +#include "chrome/browser/extensions/extension_updater.h"
|
| #include "chrome/browser/extensions/extensions_service.h"
|
| #include "chrome/browser/profile.h"
|
| +#include "chrome/common/extensions/extension_constants.h"
|
| #include "chrome/common/extensions/extension_error_utils.h"
|
| #include "chrome/common/notification_service.h"
|
| #include "chrome/common/notification_type.h"
|
| @@ -22,6 +25,8 @@
|
| using base::IntToString;
|
| namespace events = extension_event_names;
|
|
|
| +namespace {
|
| +
|
| const char kAppLaunchUrlKey[] = "appLaunchUrl";
|
| const char kEnabledKey[] = "enabled";
|
| const char kIconsKey[] = "icons";
|
| @@ -34,6 +39,8 @@ const char kUrlKey[] = "url";
|
|
|
| const char kNoExtensionError[] = "No extension with id *";
|
|
|
| +}
|
| +
|
| ExtensionsService* ExtensionManagementFunction::service() {
|
| return profile()->GetExtensionsService();
|
| }
|
| @@ -117,11 +124,6 @@ bool SetEnabledFunction::RunImpl() {
|
| return true;
|
| }
|
|
|
| -bool InstallFunction::RunImpl() {
|
| - NOTIMPLEMENTED();
|
| - return false;
|
| -}
|
| -
|
| bool UninstallFunction::RunImpl() {
|
| std::string extension_id;
|
| EXTENSION_FUNCTION_VALIDATE(args_->GetString(0, &extension_id));
|
| @@ -136,7 +138,6 @@ bool UninstallFunction::RunImpl() {
|
| return true;
|
| }
|
|
|
| -
|
| // static
|
| ExtensionManagementEventRouter* ExtensionManagementEventRouter::GetInstance() {
|
| return Singleton<ExtensionManagementEventRouter>::get();
|
|
|