make_scoped_refptr --> WrapRefCounted
This commit is contained in:
parent
4666879f94
commit
12066a60f3
11 changed files with 26 additions and 26 deletions
|
@ -65,7 +65,7 @@ scoped_refptr<BrowserContext> BrowserContext::Get(
|
|||
const std::string& partition, bool in_memory) {
|
||||
PartitionKey key(partition, in_memory);
|
||||
if (browser_context_map_[key].get())
|
||||
return make_scoped_refptr(browser_context_map_[key].get());
|
||||
return WrapRefCounted(browser_context_map_[key].get());
|
||||
|
||||
return nullptr;
|
||||
}
|
||||
|
@ -108,7 +108,7 @@ void BrowserContext::InitPrefs() {
|
|||
pref_store->ReadPrefs(); // Synchronous.
|
||||
prefs_factory.set_user_prefs(pref_store);
|
||||
|
||||
auto registry = make_scoped_refptr(new PrefRegistrySimple);
|
||||
auto registry = WrapRefCounted(new PrefRegistrySimple);
|
||||
RegisterInternalPrefs(registry.get());
|
||||
RegisterPrefs(registry.get());
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue