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

Unified Diff: chrome/browser/chromeos/extensions/external_cache.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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chromeos/extensions/external_cache.h
diff --git a/chrome/browser/chromeos/extensions/external_cache.h b/chrome/browser/chromeos/extensions/external_cache.h
index 36684b5193b7beb5b16c0bab7812e5be992540e9..9f5396291b92dcf235cd39e9ed2e2a97e5bd0203 100644
--- a/chrome/browser/chromeos/extensions/external_cache.h
+++ b/chrome/browser/chromeos/extensions/external_cache.h
@@ -5,13 +5,13 @@
#ifndef CHROME_BROWSER_CHROMEOS_EXTENSIONS_EXTERNAL_CACHE_H_
#define CHROME_BROWSER_CHROMEOS_EXTENSIONS_EXTERNAL_CACHE_H_
+#include <memory>
#include <string>
#include "base/callback_forward.h"
#include "base/files/file_path.h"
#include "base/macros.h"
#include "base/memory/ref_counted.h"
-#include "base/memory/scoped_ptr.h"
#include "base/memory/weak_ptr.h"
#include "base/sequenced_task_runner.h"
#include "chrome/browser/extensions/updater/local_extension_cache.h"
@@ -109,7 +109,7 @@ class ExternalCache : public content::NotificationObserver,
// Replace the list of extensions to cache with |prefs| and perform update
// checks for these.
- void UpdateExtensionsList(scoped_ptr<base::DictionaryValue> prefs);
+ void UpdateExtensionsList(std::unique_ptr<base::DictionaryValue> prefs);
// If a user of one of the ExternalCache's extensions detects that
// the extension is damaged then this method can be used to remove it from
@@ -177,14 +177,14 @@ class ExternalCache : public content::NotificationObserver,
bool flush_on_put_ = false;
// This is the list of extensions currently configured.
- scoped_ptr<base::DictionaryValue> extensions_;
+ std::unique_ptr<base::DictionaryValue> extensions_;
// This contains extensions that are both currently configured
// and that have a valid crx in the cache.
- scoped_ptr<base::DictionaryValue> cached_extensions_;
+ std::unique_ptr<base::DictionaryValue> cached_extensions_;
// Used to download the extensions and to check for updates.
- scoped_ptr<extensions::ExtensionDownloader> downloader_;
+ std::unique_ptr<extensions::ExtensionDownloader> downloader_;
// Observes failures to install CRX files.
content::NotificationRegistrar notification_registrar_;
« no previous file with comments | « chrome/browser/chromeos/extensions/echo_private_apitest.cc ('k') | chrome/browser/chromeos/extensions/external_cache.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698