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

Unified Diff: extensions/browser/extension_prefs.cc

Issue 2252373002: Re-write many calls to WrapUnique() with MakeUnique() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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
« no previous file with comments | « extensions/browser/extension_function.cc ('k') | extensions/browser/extension_protocols.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/browser/extension_prefs.cc
diff --git a/extensions/browser/extension_prefs.cc b/extensions/browser/extension_prefs.cc
index 3335600a72577e179ebdb3d2612ce990509bd542..f2fd42425fc8f2373a3902547f1573a2ef9f09dd 100644
--- a/extensions/browser/extension_prefs.cc
+++ b/extensions/browser/extension_prefs.cc
@@ -348,10 +348,9 @@ ExtensionPrefs* ExtensionPrefs::Create(
ExtensionPrefValueMap* extension_pref_value_map,
bool extensions_disabled,
const std::vector<ExtensionPrefsObserver*>& early_observers) {
- return ExtensionPrefs::Create(browser_context, prefs, root_dir,
- extension_pref_value_map, extensions_disabled,
- early_observers,
- base::WrapUnique(new TimeProvider()));
+ return ExtensionPrefs::Create(
+ browser_context, prefs, root_dir, extension_pref_value_map,
+ extensions_disabled, early_observers, base::MakeUnique<TimeProvider>());
}
// static
@@ -609,8 +608,8 @@ std::unique_ptr<const PermissionSet> ExtensionPrefs::ReadPrefAsPermissionSet(
extension_id, JoinPrefs(pref_key, kPrefScriptableHosts),
&scriptable_hosts, UserScript::ValidUserScriptSchemes());
- return base::WrapUnique(new PermissionSet(apis, manifest_permissions,
- explicit_hosts, scriptable_hosts));
+ return base::MakeUnique<PermissionSet>(apis, manifest_permissions,
+ explicit_hosts, scriptable_hosts);
}
// Set the API or Manifest permissions.
« no previous file with comments | « extensions/browser/extension_function.cc ('k') | extensions/browser/extension_protocols.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698