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

Side by Side Diff: chrome/browser/chromeos/app_mode/kiosk_app_external_loader.cc

Issue 1870793002: Convert //chrome/browser/chromeos from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase 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/chromeos/app_mode/kiosk_app_external_loader.h" 5 #include "chrome/browser/chromeos/app_mode/kiosk_app_external_loader.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/values.h" 9 #include "base/values.h"
10 #include "chrome/browser/chromeos/app_mode/kiosk_app_manager.h" 10 #include "chrome/browser/chromeos/app_mode/kiosk_app_manager.h"
11 11
12 namespace chromeos { 12 namespace chromeos {
13 13
14 KioskAppExternalLoader::KioskAppExternalLoader() { 14 KioskAppExternalLoader::KioskAppExternalLoader() {
15 } 15 }
16 16
17 KioskAppExternalLoader::~KioskAppExternalLoader() { 17 KioskAppExternalLoader::~KioskAppExternalLoader() {
18 } 18 }
19 19
20 void KioskAppExternalLoader::SetCurrentAppExtensions( 20 void KioskAppExternalLoader::SetCurrentAppExtensions(
21 scoped_ptr<base::DictionaryValue> prefs) { 21 std::unique_ptr<base::DictionaryValue> prefs) {
22 prefs_ = std::move(prefs); 22 prefs_ = std::move(prefs);
23 StartLoading(); 23 StartLoading();
24 } 24 }
25 25
26 void KioskAppExternalLoader::StartLoading() { 26 void KioskAppExternalLoader::StartLoading() {
27 if (prefs_) 27 if (prefs_)
28 LoadFinished(); 28 LoadFinished();
29 } 29 }
30 30
31 } // namespace chromeos 31 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/app_mode/kiosk_app_external_loader.h ('k') | chrome/browser/chromeos/app_mode/kiosk_app_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698