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

Unified Diff: chrome/browser/plugins/plugin_prefs.cc

Issue 1226673003: Move MatchPattern to its own header and the base namespace. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 5 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: chrome/browser/plugins/plugin_prefs.cc
diff --git a/chrome/browser/plugins/plugin_prefs.cc b/chrome/browser/plugins/plugin_prefs.cc
index 8eaa104d28c1adb38f75a8ef4abfb992d855f79b..fd58cde5acbba2b4457a0deca77f811ec80187cb 100644
--- a/chrome/browser/plugins/plugin_prefs.cc
+++ b/chrome/browser/plugins/plugin_prefs.cc
@@ -13,6 +13,7 @@
#include "base/path_service.h"
#include "base/prefs/scoped_user_pref_update.h"
#include "base/single_thread_task_runner.h"
+#include "base/strings/pattern.h"
#include "base/strings/string_util.h"
#include "base/strings/utf_string_conversions.h"
#include "base/thread_task_runner_handle.h"
@@ -288,7 +289,7 @@ bool PluginPrefs::IsStringMatchedInSet(
const std::set<base::string16>& pattern_set) {
std::set<base::string16>::const_iterator pattern(pattern_set.begin());
while (pattern != pattern_set.end()) {
- if (MatchPattern(name, *pattern))
+ if (base::MatchPattern(name, *pattern))
return true;
++pattern;
}
« no previous file with comments | « chrome/browser/plugins/plugin_metadata.cc ('k') | chrome/browser/task_manager/task_manager_browsertest_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698