replace base::MakeUnique with std::make_unique
This commit is contained in:
parent
97fb15ac49
commit
b05932310b
28 changed files with 50 additions and 50 deletions
|
@ -186,7 +186,7 @@ void CommonWebContentsDelegate::SetOwnerWindow(NativeWindow* owner_window) {
|
|||
void CommonWebContentsDelegate::SetOwnerWindow(
|
||||
content::WebContents* web_contents, NativeWindow* owner_window) {
|
||||
owner_window_ = owner_window ? owner_window->GetWeakPtr() : nullptr;
|
||||
auto relay = base::MakeUnique<NativeWindowRelay>(owner_window_);
|
||||
auto relay = std::make_unique<NativeWindowRelay>(owner_window_);
|
||||
auto relay_key = relay->key;
|
||||
if (owner_window) {
|
||||
#if defined(TOOLKIT_VIEWS)
|
||||
|
@ -397,7 +397,7 @@ void CommonWebContentsDelegate::DevToolsAddFileSystem(
|
|||
auto pref_service = GetPrefService(GetDevToolsWebContents());
|
||||
DictionaryPrefUpdate update(pref_service, prefs::kDevToolsFileSystemPaths);
|
||||
update.Get()->SetWithoutPathExpansion(
|
||||
path.AsUTF8Unsafe(), base::MakeUnique<base::Value>());
|
||||
path.AsUTF8Unsafe(), std::make_unique<base::Value>());
|
||||
|
||||
web_contents_->CallClientFunction("DevToolsAPI.fileSystemAdded",
|
||||
file_system_value.get(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue