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

Unified Diff: chrome/browser/extensions/platform_app_browsertest_util.h

Issue 10915047: Links in platform apps should open in the system default browser. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 2 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
« no previous file with comments | « no previous file | chrome/browser/extensions/platform_app_browsertest_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/platform_app_browsertest_util.h
diff --git a/chrome/browser/extensions/platform_app_browsertest_util.h b/chrome/browser/extensions/platform_app_browsertest_util.h
index 3d3a2a7d40efd36e9d4d74b9e443b0147b72f2b3..1416d1f9c63b2f0215dc655b1910935acfd22e87 100644
--- a/chrome/browser/extensions/platform_app_browsertest_util.h
+++ b/chrome/browser/extensions/platform_app_browsertest_util.h
@@ -19,9 +19,26 @@ class ShellWindow;
namespace extensions {
class Extension;
+class MockExternalUrlController : public content::WebContentsDelegate {
+ public:
+ MockExternalUrlController();
+ virtual ~MockExternalUrlController();
+
+ private:
+ // content::WebContentsDelegate implementation.
+ virtual content::WebContents* OpenURLFromTab(
+ content::WebContents* source,
+ const content::OpenURLParams& params) OVERRIDE;
+
+ DISALLOW_COPY_AND_ASSIGN(MockExternalUrlController);
+};
+
class PlatformAppBrowserTest : public ExtensionApiTest {
public:
+ PlatformAppBrowserTest();
+ virtual ~PlatformAppBrowserTest();
virtual void SetUpCommandLine(CommandLine* command_line) OVERRIDE;
+ virtual void SetUpOnMainThread() OVERRIDE;
protected:
// Runs the app named |name| out of the platform_apps subdirectory. Waits
@@ -66,6 +83,8 @@ class PlatformAppBrowserTest : public ExtensionApiTest {
// Closes |window| and waits until it's gone.
void CloseShellWindow(ShellWindow* window);
+
+ scoped_ptr<MockExternalUrlController> mock_external_url_controller_;
};
}
« no previous file with comments | « no previous file | chrome/browser/extensions/platform_app_browsertest_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698