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

Unified Diff: content/public/test/web_contents_tester.cc

Issue 12334073: Remove WebContents methods that duplicate WebContentsView methods. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 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 | « content/public/test/web_contents_tester.h ('k') | content/shell/shell.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/test/web_contents_tester.cc
diff --git a/content/public/test/web_contents_tester.cc b/content/public/test/web_contents_tester.cc
index 3b2ed5575afb1a9067f2cab3cd7277df76bfc0c4..4435d9ffc9669f1774379e7e30736869d645ea9c 100644
--- a/content/public/test/web_contents_tester.cc
+++ b/content/public/test/web_contents_tester.cc
@@ -13,24 +13,6 @@ namespace {
// The two subclasses here are instantiated via the deprecated
// CreateWebContentsFor... factories below.
-class TestWebContentsCountFocus : public TestWebContents {
- public:
- explicit TestWebContentsCountFocus(BrowserContext* browser_context)
- : TestWebContents(browser_context), focus_called_(0) {
- }
-
- virtual int GetNumberOfFocusCalls() OVERRIDE {
- return focus_called_;
- }
-
- virtual void Focus() OVERRIDE {
- focus_called_++;
- }
-
- private:
- int focus_called_;
-};
-
class TestWebContentsCountSetFocusToLocationBar : public TestWebContents {
public:
explicit TestWebContentsCountSetFocusToLocationBar(
@@ -73,14 +55,4 @@ WebContents* WebContentsTester::CreateTestWebContentsCountSetFocusToLocationBar(
return web_contents;
}
-// static
-WebContents* WebContentsTester::CreateTestWebContentsCountFocus(
- BrowserContext* browser_context,
- SiteInstance* instance) {
- TestWebContentsCountFocus* web_contents =
- new TestWebContentsCountFocus(browser_context);
- web_contents->Init(WebContents::CreateParams(browser_context, instance));
- return web_contents;
-}
-
} // namespace content
« no previous file with comments | « content/public/test/web_contents_tester.h ('k') | content/shell/shell.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698