| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/browser/extensions/unpacked_installer.h" | 5 #include "chrome/browser/extensions/unpacked_installer.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/callback.h" | 8 #include "base/callback.h" |
| 9 #include "base/file_util.h" | 9 #include "base/file_util.h" |
| 10 #include "base/strings/string_util.h" | 10 #include "base/strings/string_util.h" |
| 11 #include "base/strings/utf_string_conversions.h" | 11 #include "base/strings/utf_string_conversions.h" |
| 12 #include "base/threading/thread_restrictions.h" | 12 #include "base/threading/thread_restrictions.h" |
| 13 #include "chrome/browser/extensions/extension_install_prompt.h" | 13 #include "chrome/browser/extensions/extension_install_prompt.h" |
| 14 #include "chrome/browser/extensions/extension_install_ui.h" | 14 #include "chrome/browser/extensions/extension_install_ui.h" |
| 15 #include "chrome/browser/extensions/extension_prefs.h" | 15 #include "chrome/browser/extensions/extension_prefs.h" |
| 16 #include "chrome/browser/extensions/extension_service.h" | 16 #include "chrome/browser/extensions/extension_service.h" |
| 17 #include "chrome/browser/extensions/permissions_updater.h" | 17 #include "chrome/browser/extensions/permissions_updater.h" |
| 18 #include "chrome/common/extensions/api/plugins/plugins_handler.h" | 18 #include "chrome/common/extensions/api/plugins/plugins_handler.h" |
| 19 #include "chrome/common/extensions/extension.h" | 19 #include "chrome/common/extensions/extension.h" |
| 20 #include "chrome/common/extensions/extension_file_util.h" | 20 #include "chrome/common/extensions/extension_file_util.h" |
| 21 #include "chrome/common/extensions/manifest.h" | |
| 22 #include "content/public/browser/browser_thread.h" | 21 #include "content/public/browser/browser_thread.h" |
| 23 #include "extensions/common/id_util.h" | 22 #include "extensions/common/id_util.h" |
| 23 #include "extensions/common/manifest.h" |
| 24 #include "sync/api/string_ordinal.h" | 24 #include "sync/api/string_ordinal.h" |
| 25 | 25 |
| 26 using content::BrowserThread; | 26 using content::BrowserThread; |
| 27 using extensions::Extension; | 27 using extensions::Extension; |
| 28 | 28 |
| 29 namespace { | 29 namespace { |
| 30 | 30 |
| 31 const char kUnpackedExtensionsBlacklistedError[] = | 31 const char kUnpackedExtensionsBlacklistedError[] = |
| 32 "Loading of unpacked extensions is disabled by the administrator."; | 32 "Loading of unpacked extensions is disabled by the administrator."; |
| 33 | 33 |
| (...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 285 | 285 |
| 286 service_weak_->OnExtensionInstalled( | 286 service_weak_->OnExtensionInstalled( |
| 287 installer_.extension().get(), | 287 installer_.extension().get(), |
| 288 syncer::StringOrdinal(), | 288 syncer::StringOrdinal(), |
| 289 false /* no requirement errors */, | 289 false /* no requirement errors */, |
| 290 Blacklist::NOT_BLACKLISTED, | 290 Blacklist::NOT_BLACKLISTED, |
| 291 false /* don't wait for idle */); | 291 false /* don't wait for idle */); |
| 292 } | 292 } |
| 293 | 293 |
| 294 } // namespace extensions | 294 } // namespace extensions |
| OLD | NEW |