Update browser_commands.cc

This commit is contained in:
Alexander David Frick 2022-09-11 16:18:08 -05:00 committed by GitHub
parent 22d1e2bbe8
commit 272eec513e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1678,12 +1678,9 @@ bool IsDebuggerAttachedToCurrentTab(Browser* browser) {
: false;
}
void CopyURL(Browser* browser) {
void CopyURL(content::WebContents* web_contents) {
ui::ScopedClipboardWriter scw(ui::ClipboardBuffer::kCopyPaste);
scw.WriteText(base::UTF8ToUTF16(browser->tab_strip_model()
->GetActiveWebContents()
->GetVisibleURL()
.spec()));
scw.WriteText(base::UTF8ToUTF16(web_contents->GetVisibleURL().spec()));
}
Browser* OpenInChrome(Browser* hosted_app_browser) {