| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "base/logging.h" | 5 #include "base/logging.h" |
| 6 #include "base/stl_util.h" | 6 #include "base/stl_util.h" |
| 7 #include "base/version.h" | 7 #include "base/version.h" |
| 8 #include "chrome/browser/extensions/extension_service.h" | 8 #include "chrome/browser/extensions/extension_service.h" |
| 9 #include "chrome/browser/extensions/pending_extension_manager.h" | 9 #include "chrome/browser/extensions/pending_extension_manager.h" |
| 10 #include "chrome/common/extensions/extension.h" | 10 #include "chrome/common/extensions/extension.h" |
| 11 #include "content/public/browser/browser_thread.h" | 11 #include "content/public/browser/browser_thread.h" |
| 12 | 12 |
| 13 using content::BrowserThread; | 13 using content::BrowserThread; |
| 14 using extensions::Extension; |
| 14 | 15 |
| 15 namespace { | 16 namespace { |
| 16 | 17 |
| 17 // Install predicate used by AddFromExternalUpdateUrl(). | 18 // Install predicate used by AddFromExternalUpdateUrl(). |
| 18 bool AlwaysInstall(const Extension& extension) { | 19 bool AlwaysInstall(const Extension& extension) { |
| 19 return true; | 20 return true; |
| 20 } | 21 } |
| 21 | 22 |
| 22 } // namespace | 23 } // namespace |
| 23 | 24 |
| (...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 201 install_silently, | 202 install_silently, |
| 202 install_source); | 203 install_source); |
| 203 return true; | 204 return true; |
| 204 } | 205 } |
| 205 | 206 |
| 206 void PendingExtensionManager::AddForTesting( | 207 void PendingExtensionManager::AddForTesting( |
| 207 const std::string& id, | 208 const std::string& id, |
| 208 const PendingExtensionInfo& pending_extension_info) { | 209 const PendingExtensionInfo& pending_extension_info) { |
| 209 pending_extension_map_[id] = pending_extension_info; | 210 pending_extension_map_[id] = pending_extension_info; |
| 210 } | 211 } |
| OLD | NEW |