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

Side by Side Diff: chrome/browser/chromeos/extensions/device_local_account_external_policy_loader.h

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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 #ifndef CHROME_BROWSER_CHROMEOS_EXTENSIONS_DEVICE_LOCAL_ACCOUNT_EXTERNAL_POLICY_ LOADER_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_EXTENSIONS_DEVICE_LOCAL_ACCOUNT_EXTERNAL_POLICY_ LOADER_H_
6 #define CHROME_BROWSER_CHROMEOS_EXTENSIONS_DEVICE_LOCAL_ACCOUNT_EXTERNAL_POLICY_ LOADER_H_ 6 #define CHROME_BROWSER_CHROMEOS_EXTENSIONS_DEVICE_LOCAL_ACCOUNT_EXTERNAL_POLICY_ LOADER_H_
7 7
8 #include <memory>
9
8 #include "base/callback_forward.h" 10 #include "base/callback_forward.h"
9 #include "base/compiler_specific.h" 11 #include "base/compiler_specific.h"
10 #include "base/files/file_path.h" 12 #include "base/files/file_path.h"
11 #include "base/macros.h" 13 #include "base/macros.h"
12 #include "base/memory/ref_counted.h" 14 #include "base/memory/ref_counted.h"
13 #include "base/memory/scoped_ptr.h"
14 #include "base/sequenced_task_runner.h" 15 #include "base/sequenced_task_runner.h"
15 #include "chrome/browser/chromeos/extensions/external_cache.h" 16 #include "chrome/browser/chromeos/extensions/external_cache.h"
16 #include "chrome/browser/extensions/external_loader.h" 17 #include "chrome/browser/extensions/external_loader.h"
17 #include "components/policy/core/common/cloud/cloud_policy_store.h" 18 #include "components/policy/core/common/cloud/cloud_policy_store.h"
18 19
19 namespace chromeos { 20 namespace chromeos {
20 21
21 // A specialization of the ExternalLoader that serves external extensions from 22 // A specialization of the ExternalLoader that serves external extensions from
22 // the enterprise policy force-install list. This class is used for device-local 23 // the enterprise policy force-install list. This class is used for device-local
23 // accounts in place of the ExternalPolicyLoader. The difference is that while 24 // accounts in place of the ExternalPolicyLoader. The difference is that while
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 private: 63 private:
63 // If the cache was started, it must be stopped before |this| is destroyed. 64 // If the cache was started, it must be stopped before |this| is destroyed.
64 ~DeviceLocalAccountExternalPolicyLoader() override; 65 ~DeviceLocalAccountExternalPolicyLoader() override;
65 66
66 // Pass the current list of force-installed extensions from the |store_| to 67 // Pass the current list of force-installed extensions from the |store_| to
67 // the |external_cache_|. 68 // the |external_cache_|.
68 void UpdateExtensionListFromStore(); 69 void UpdateExtensionListFromStore();
69 70
70 policy::CloudPolicyStore* store_; 71 policy::CloudPolicyStore* store_;
71 const base::FilePath cache_dir_; 72 const base::FilePath cache_dir_;
72 scoped_ptr<ExternalCache> external_cache_; 73 std::unique_ptr<ExternalCache> external_cache_;
73 74
74 DISALLOW_COPY_AND_ASSIGN(DeviceLocalAccountExternalPolicyLoader); 75 DISALLOW_COPY_AND_ASSIGN(DeviceLocalAccountExternalPolicyLoader);
75 }; 76 };
76 77
77 } // namespace chromeos 78 } // namespace chromeos
78 79
79 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_DEVICE_LOCAL_ACCOUNT_EXTERNAL_POLI CY_LOADER_H_ 80 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_DEVICE_LOCAL_ACCOUNT_EXTERNAL_POLI CY_LOADER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698