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

Unified Diff: ui/views/test/test_views_delegate.cc

Issue 10191010: Re-implement the screensaver to use WebView instead of ExtensionDialogHost. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: ut fix. Created 8 years, 8 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 | « ui/views/test/test_views_delegate.h ('k') | ui/views/test/webview_test_helper.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/test/test_views_delegate.cc
diff --git a/ui/views/test/test_views_delegate.cc b/ui/views/test/test_views_delegate.cc
index a8fe51177da391d3e9d3ae3d49745f180bcf9d9e..21ae8ae1105c1ecef5eb42ed192ad07192f7057a 100644
--- a/ui/views/test/test_views_delegate.cc
+++ b/ui/views/test/test_views_delegate.cc
@@ -5,6 +5,7 @@
#include "ui/views/test/test_views_delegate.h"
#include "base/logging.h"
+#include "content/test/web_contents_tester.h"
#include "ui/base/clipboard/clipboard.h"
namespace views {
@@ -64,4 +65,11 @@ views::NativeWidgetHelperAura* TestViewsDelegate::CreateNativeWidgetHelper(
}
#endif
+content::WebContents* TestViewsDelegate::CreateWebContents(
+ content::BrowserContext* browser_context,
+ content::SiteInstance* site_instance) {
+ return content::WebContentsTester::CreateTestWebContents(browser_context,
+ site_instance);
+}
+
} // namespace views
« no previous file with comments | « ui/views/test/test_views_delegate.h ('k') | ui/views/test/webview_test_helper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698