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

Unified Diff: device/serial/serial_device_enumerator_mac.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
« no previous file with comments | « content/test/image_decoder_test.cc ('k') | extensions/common/manifest_handlers/webview_info.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/serial/serial_device_enumerator_mac.cc
diff --git a/device/serial/serial_device_enumerator_mac.cc b/device/serial/serial_device_enumerator_mac.cc
index 2de2ae5ee466fd444ded02d614728edc1cfea51c..8e56b91def8953309a3c8a2d8455c48b336c57cf 100644
--- a/device/serial/serial_device_enumerator_mac.cc
+++ b/device/serial/serial_device_enumerator_mac.cc
@@ -8,6 +8,7 @@
#include "base/files/file_path.h"
#include "base/files/file_util.h"
#include "base/memory/scoped_ptr.h"
+#include "base/strings/pattern.h"
#include "base/strings/string_util.h"
namespace device {
@@ -46,7 +47,7 @@ mojo::Array<serial::DeviceInfoPtr> SerialDeviceEnumeratorMac::GetDevices() {
std::set<std::string>::const_iterator i = valid_patterns.begin();
for (; i != valid_patterns.end(); ++i) {
- if (MatchPattern(next_device, *i)) {
+ if (base::MatchPattern(next_device, *i)) {
serial::DeviceInfoPtr info(serial::DeviceInfo::New());
info->path = next_device;
devices.push_back(info.Pass());
« no previous file with comments | « content/test/image_decoder_test.cc ('k') | extensions/common/manifest_handlers/webview_info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698