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

Unified Diff: chrome/browser/ui/extensions/shell_window.cc

Issue 18192003: Add tests for ShellWindowLinkDelegate::OpenURLFromTab (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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/extensions/shell_window.cc
diff --git a/chrome/browser/ui/extensions/shell_window.cc b/chrome/browser/ui/extensions/shell_window.cc
index 27e55b781748b2c9c94c8a73084386a1c974ebe1..00120996d0dd4c09e4fcb8c9059f53d2afd1860c 100644
--- a/chrome/browser/ui/extensions/shell_window.cc
+++ b/chrome/browser/ui/extensions/shell_window.cc
@@ -697,7 +697,12 @@ SkRegion* ShellWindow::RawDraggableRegionsToSkRegion(
return sk_region;
}
+// static
void ShellWindow::DisableExternalOpenForTesting() {
disable_external_open_for_testing_ = true;
}
+// static
+void ShellWindow::EnableExternalOpenForTesting() {
+ disable_external_open_for_testing_ = false;
+}
« no previous file with comments | « chrome/browser/ui/extensions/shell_window.h ('k') | chrome/test/data/extensions/platform_apps/external_open_link/main.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698