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

Unified Diff: chrome/browser/ui/browser_commands.h

Issue 398623004: DevTools: Open new tab with correct url rather than navigate from default page (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 5 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
Index: chrome/browser/ui/browser_commands.h
diff --git a/chrome/browser/ui/browser_commands.h b/chrome/browser/ui/browser_commands.h
index 2113e7708b65a2557febeced9659005f7b66ad09..581267dbd40aad85f2f3426c81ad9823b5757daa 100644
--- a/chrome/browser/ui/browser_commands.h
+++ b/chrome/browser/ui/browser_commands.h
@@ -47,6 +47,16 @@ void NewEmptyWindow(Profile* profile, HostDesktopType desktop_type);
// various internal bookkeeping; NewEmptyWindow (above) is preferred.
Browser* OpenEmptyWindow(Profile* profile, HostDesktopType desktop_type);
+// Opens a new window with |url| opened in a tab.
+void NewWindow(Profile* profile, HostDesktopType desktop_type, const GURL& url);
sky 2014/07/21 16:35:54 Can you use browser_navigator.h to create and navi
vkuzkokov 2014/08/05 17:12:09 Done.
+
+// Opens a new window with |url| opened in a tab. This bypasses metrics and
+// various internal bookkeeping; NewWindow (above) is preferred.
+Browser* OpenWindow(Profile* profile,
+ HostDesktopType desktop_type,
+ const GURL& url);
+
+
// Opens a new window with the tabs from |profile|'s TabRestoreService.
void OpenWindowWithRestoredTabs(Profile* profile,
HostDesktopType host_desktop_type);

Powered by Google App Engine
This is Rietveld 408576698