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

Unified Diff: content/browser/media/media_browsertest.cc

Issue 21955003: Cleanup: Use content::kAboutBlankURL instead of the raw string in contents/. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix build 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
Index: content/browser/media/media_browsertest.cc
===================================================================
--- content/browser/media/media_browsertest.cc (revision 215674)
+++ content/browser/media/media_browsertest.cc (working copy)
@@ -7,6 +7,7 @@
#include "base/strings/stringprintf.h"
#include "base/strings/utf_string_conversions.h"
#include "content/public/browser/web_contents.h"
+#include "content/public/common/url_constants.h"
#include "content/public/test/browser_test_utils.h"
#include "content/shell/shell.h"
#include "content/test/content_browser_test_utils.h"
@@ -34,7 +35,7 @@
std::vector<StringPair>::const_iterator itr = query_params->begin();
query = base::StringPrintf("%s=%s", itr->first, itr->second);
++itr;
- for (;itr != query_params->end(); ++itr) {
+ for (; itr != query_params->end(); ++itr) {
query.append(base::StringPrintf("&%s=%s", itr->first, itr->second));
}
}
@@ -184,7 +185,7 @@
// Covers tear-down when navigating away as opposed to browser exiting.
IN_PROC_BROWSER_TEST_F(MediaTest, Navigate) {
PlayVideo("bear.ogv", false);
- NavigateToURL(shell(), GURL("about:blank"));
+ NavigateToURL(shell(), GURL(kAboutBlankURL));
EXPECT_FALSE(shell()->web_contents()->IsCrashed());
}

Powered by Google App Engine
This is Rietveld 408576698