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

Unified Diff: trunk/src/chrome/browser/extensions/lazy_background_page_apitest.cc

Issue 23475011: Revert 220623 "Update chrome://newtab checks in browser tests to..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 years, 4 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 | trunk/src/chrome/browser/policy/policy_browsertest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: trunk/src/chrome/browser/extensions/lazy_background_page_apitest.cc
===================================================================
--- trunk/src/chrome/browser/extensions/lazy_background_page_apitest.cc (revision 220635)
+++ trunk/src/chrome/browser/extensions/lazy_background_page_apitest.cc (working copy)
@@ -17,7 +17,6 @@
#include "chrome/browser/extensions/extension_test_message_listener.h"
#include "chrome/browser/extensions/lazy_background_page_test_util.h"
#include "chrome/browser/profiles/profile.h"
-#include "chrome/browser/search/search.h"
#include "chrome/browser/ui/browser.h"
#include "chrome/browser/ui/browser_window.h"
#include "chrome/browser/ui/omnibox/location_bar.h"
@@ -282,9 +281,9 @@
EXPECT_TRUE(catcher.GetNextResult()) << catcher.message();
// The extension should've opened a new tab to an extension page.
- EXPECT_TRUE(chrome::IsNTPURL(
- browser()->tab_strip_model()->GetActiveWebContents()->GetURL(),
- browser()->profile()));
+ EXPECT_EQ(std::string(chrome::kChromeUINewTabURL),
+ browser()->tab_strip_model()->GetActiveWebContents()->
+ GetURL().spec());
// Lazy Background Page still exists, because the extension created a new tab
// to an extension page.
« no previous file with comments | « no previous file | trunk/src/chrome/browser/policy/policy_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698