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

Unified Diff: chrome/browser/tab_contents/render_view_context_menu_unittest.cc

Issue 8885022: Move URLPattern::ParseOption into a field. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: more minor sprucing Created 9 years 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 | « chrome/browser/extensions/webstore_inline_installer.cc ('k') | chrome/common/extensions/extension.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/tab_contents/render_view_context_menu_unittest.cc
diff --git a/chrome/browser/tab_contents/render_view_context_menu_unittest.cc b/chrome/browser/tab_contents/render_view_context_menu_unittest.cc
index 558935492e6b15e06cc22dc9da488b7ced005fc7..338f29b7cb390c3d470e89358606c09a5d8ca950 100644
--- a/chrome/browser/tab_contents/render_view_context_menu_unittest.cc
+++ b/chrome/browser/tab_contents/render_view_context_menu_unittest.cc
@@ -72,8 +72,8 @@ static ContextMenuParams CreateParams(int contexts) {
// Generates a URLPatternSet with a single pattern
static URLPatternSet CreatePatternSet(const std::string& pattern) {
- URLPattern target(URLPattern::SCHEME_HTTP);
- target.Parse(pattern, URLPattern::IGNORE_PORTS);
+ URLPattern target(URLPattern::IGNORE_PORTS, URLPattern::SCHEME_HTTP);
+ target.Parse(pattern);
URLPatternSet rv;
rv.AddPattern(target);
@@ -237,4 +237,3 @@ TEST_F(RenderViewContextMenuTest, TargetIgnoredForSelectionOnImage) {
EXPECT_TRUE(ExtensionContextAndPatternMatch(params, contexts, patterns));
}
-
« no previous file with comments | « chrome/browser/extensions/webstore_inline_installer.cc ('k') | chrome/common/extensions/extension.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698