| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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/extensions_service.h" | 5 #include "chrome/browser/extensions/extensions_service.h" |
| 6 | 6 |
| 7 #include "base/file_util.h" | 7 #include "base/file_util.h" |
| 8 #include "base/gfx/png_encoder.h" | 8 #include "base/gfx/png_encoder.h" |
| 9 #include "base/scoped_handle.h" | 9 #include "base/scoped_handle.h" |
| 10 #include "base/scoped_temp_dir.h" | 10 #include "base/scoped_temp_dir.h" |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 #include "chrome/browser/extensions/extension_browser_event_router.h" | 21 #include "chrome/browser/extensions/extension_browser_event_router.h" |
| 22 #include "chrome/browser/extensions/extension_process_manager.h" | 22 #include "chrome/browser/extensions/extension_process_manager.h" |
| 23 #include "chrome/browser/profile.h" | 23 #include "chrome/browser/profile.h" |
| 24 #include "chrome/browser/utility_process_host.h" | 24 #include "chrome/browser/utility_process_host.h" |
| 25 #include "chrome/common/extensions/extension.h" | 25 #include "chrome/common/extensions/extension.h" |
| 26 #include "chrome/common/extensions/extension_error_reporter.h" | 26 #include "chrome/common/extensions/extension_error_reporter.h" |
| 27 #include "chrome/common/extensions/extension_unpacker.h" | 27 #include "chrome/common/extensions/extension_unpacker.h" |
| 28 #include "chrome/common/json_value_serializer.h" | 28 #include "chrome/common/json_value_serializer.h" |
| 29 #include "chrome/common/notification_service.h" | 29 #include "chrome/common/notification_service.h" |
| 30 #include "chrome/common/pref_service.h" | 30 #include "chrome/common/pref_service.h" |
| 31 #include "chrome/common/unzip.h" | 31 #include "chrome/common/zip.h" |
| 32 #include "chrome/common/url_constants.h" | 32 #include "chrome/common/url_constants.h" |
| 33 #include "third_party/skia/include/core/SkBitmap.h" | 33 #include "third_party/skia/include/core/SkBitmap.h" |
| 34 | 34 |
| 35 #if defined(OS_WIN) | 35 #if defined(OS_WIN) |
| 36 #include "base/registry.h" | 36 #include "base/registry.h" |
| 37 #endif | 37 #endif |
| 38 | 38 |
| 39 // ExtensionsService | 39 // ExtensionsService |
| 40 | 40 |
| 41 const char* ExtensionsService::kInstallDirectoryName = "Extensions"; | 41 const char* ExtensionsService::kInstallDirectoryName = "Extensions"; |
| (...skipping 911 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 953 | 953 |
| 954 bool ExtensionsServiceBackend::ShouldInstall(const std::string& id, | 954 bool ExtensionsServiceBackend::ShouldInstall(const std::string& id, |
| 955 const std::string& version) { | 955 const std::string& version) { |
| 956 FilePath dir(install_directory_.AppendASCII(id.c_str())); | 956 FilePath dir(install_directory_.AppendASCII(id.c_str())); |
| 957 std::string current_version; | 957 std::string current_version; |
| 958 if (ReadCurrentVersion(dir, ¤t_version)) { | 958 if (ReadCurrentVersion(dir, ¤t_version)) { |
| 959 return CheckCurrentVersion(version, current_version, dir); | 959 return CheckCurrentVersion(version, current_version, dir); |
| 960 } | 960 } |
| 961 return true; | 961 return true; |
| 962 } | 962 } |
| OLD | NEW |