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

Side by Side Diff: chrome/browser/extensions/external_loader.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 (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 "chrome/browser/extensions/external_loader.h" 5 #include "chrome/browser/extensions/external_loader.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/values.h" 8 #include "base/values.h"
9 #include "chrome/browser/extensions/external_provider_impl.h" 9 #include "chrome/browser/extensions/external_provider_impl.h"
10 #include "content/public/browser/browser_thread.h" 10 #include "content/public/browser/browser_thread.h"
(...skipping 27 matching lines...) Expand all
38 ExternalLoader::~ExternalLoader() {} 38 ExternalLoader::~ExternalLoader() {}
39 39
40 void ExternalLoader::LoadFinished() { 40 void ExternalLoader::LoadFinished() {
41 CHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); 41 CHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
42 if (owner_) { 42 if (owner_) {
43 owner_->SetPrefs(prefs_.release()); 43 owner_->SetPrefs(prefs_.release());
44 } 44 }
45 } 45 }
46 46
47 void ExternalLoader::OnUpdated( 47 void ExternalLoader::OnUpdated(
48 scoped_ptr<base::DictionaryValue> updated_prefs) { 48 std::unique_ptr<base::DictionaryValue> updated_prefs) {
49 CHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); 49 CHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
50 if (owner_) 50 if (owner_)
51 owner_->UpdatePrefs(updated_prefs.release()); 51 owner_->UpdatePrefs(updated_prefs.release());
52 } 52 }
53 53
54 } // namespace extensions 54 } // namespace extensions
OLDNEW
« no previous file with comments | « chrome/browser/extensions/external_loader.h ('k') | chrome/browser/extensions/external_policy_loader_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698