Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(44)

Side by Side Diff: chrome/browser/extensions/extension_system_impl.cc

Issue 1871713002: Convert //chrome/browser/extensions from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase and fix header Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_system_impl.h ('k') | chrome/browser/extensions/extension_tab_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698