OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/extension_system_impl.h" | 5 #include "chrome/browser/extensions/extension_system_impl.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 | 8 |
9 #include "base/base_switches.h" | 9 #include "base/base_switches.h" |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
(...skipping 377 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
388 } | 388 } |
389 | 389 |
390 AppSorting* ExtensionSystemImpl::app_sorting() { | 390 AppSorting* ExtensionSystemImpl::app_sorting() { |
391 return shared_->app_sorting(); | 391 return shared_->app_sorting(); |
392 } | 392 } |
393 | 393 |
394 ContentVerifier* ExtensionSystemImpl::content_verifier() { | 394 ContentVerifier* ExtensionSystemImpl::content_verifier() { |
395 return shared_->content_verifier(); | 395 return shared_->content_verifier(); |
396 } | 396 } |
397 | 397 |
398 scoped_ptr<ExtensionSet> ExtensionSystemImpl::GetDependentExtensions( | 398 std::unique_ptr<ExtensionSet> ExtensionSystemImpl::GetDependentExtensions( |
399 const Extension* extension) { | 399 const Extension* extension) { |
400 return extension_service()->shared_module_service()->GetDependentExtensions( | 400 return extension_service()->shared_module_service()->GetDependentExtensions( |
401 extension); | 401 extension); |
402 } | 402 } |
403 | 403 |
404 void ExtensionSystemImpl::InstallUpdate(const std::string& extension_id, | 404 void ExtensionSystemImpl::InstallUpdate(const std::string& extension_id, |
405 const base::FilePath& temp_dir) { | 405 const base::FilePath& temp_dir) { |
406 NOTREACHED() << "Not yet implemented"; | 406 NOTREACHED() << "Not yet implemented"; |
407 base::DeleteFile(temp_dir, true /* recursive */); | 407 base::DeleteFile(temp_dir, true /* recursive */); |
408 } | 408 } |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
440 void ExtensionSystemImpl::UnregisterExtensionWithRequestContexts( | 440 void ExtensionSystemImpl::UnregisterExtensionWithRequestContexts( |
441 const std::string& extension_id, | 441 const std::string& extension_id, |
442 const UnloadedExtensionInfo::Reason reason) { | 442 const UnloadedExtensionInfo::Reason reason) { |
443 BrowserThread::PostTask( | 443 BrowserThread::PostTask( |
444 BrowserThread::IO, | 444 BrowserThread::IO, |
445 FROM_HERE, | 445 FROM_HERE, |
446 base::Bind(&InfoMap::RemoveExtension, info_map(), extension_id, reason)); | 446 base::Bind(&InfoMap::RemoveExtension, info_map(), extension_id, reason)); |
447 } | 447 } |
448 | 448 |
449 } // namespace extensions | 449 } // namespace extensions |
OLD | NEW |