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

Unified Diff: chrome/browser/ui/apps/chrome_shell_window_delegate.cc

Issue 18192003: Add tests for ShellWindowLinkDelegate::OpenURLFromTab (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 7 years, 6 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/apps/chrome_shell_window_delegate.cc
diff --git a/chrome/browser/ui/apps/chrome_shell_window_delegate.cc b/chrome/browser/ui/apps/chrome_shell_window_delegate.cc
index c77bd5d814aa91bbf318a507cde3a0307219f473..151ccc2c33d1ade23666772ba9919efffcc09a39 100644
--- a/chrome/browser/ui/apps/chrome_shell_window_delegate.cc
+++ b/chrome/browser/ui/apps/chrome_shell_window_delegate.cc
@@ -59,10 +59,16 @@ ChromeShellWindowDelegate::ChromeShellWindowDelegate() {}
ChromeShellWindowDelegate::~ChromeShellWindowDelegate() {}
+// static
void ChromeShellWindowDelegate::DisableExternalOpenForTesting() {
disable_external_open_for_testing_ = true;
}
+// static
+void ChromeShellWindowDelegate::EnableExternalOpenForTesting() {
+ disable_external_open_for_testing_ = false;
+}
+
void ChromeShellWindowDelegate::InitWebContents(
content::WebContents* web_contents) {
FaviconTabHelper::CreateForWebContents(web_contents);

Powered by Google App Engine
This is Rietveld 408576698