mirror of
https://github.com/Alex313031/thorium.git
synced 2025-01-10 11:57:48 -03:00
Update browser_commands.cc
This commit is contained in:
parent
22d1e2bbe8
commit
272eec513e
1 changed files with 2 additions and 5 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue