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

Side by Side Diff: extensions/common/matcher/string_pattern.cc

Issue 12092096: Move c/c/extensions/matcher/ to top level extension dir (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: TOT Created 7 years, 10 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/common/extensions/matcher/string_pattern.h" 5 #include "extensions/common/matcher/string_pattern.h"
6 6
7 namespace extensions { 7 namespace extensions {
8 8
9 StringPattern::StringPattern(const std::string& pattern, 9 StringPattern::StringPattern(const std::string& pattern,
10 StringPattern::ID id) 10 StringPattern::ID id)
11 : pattern_(pattern), id_(id) {} 11 : pattern_(pattern), id_(id) {}
12 12
13 StringPattern::~StringPattern() {} 13 StringPattern::~StringPattern() {}
14 14
15 bool StringPattern::operator<(const StringPattern& rhs) const { 15 bool StringPattern::operator<(const StringPattern& rhs) const {
16 if (id_ != rhs.id_) return id_ < rhs.id_; 16 if (id_ != rhs.id_) return id_ < rhs.id_;
17 return pattern_ < rhs.pattern_; 17 return pattern_ < rhs.pattern_;
18 } 18 }
19 19
20 } // namespace extensions 20 } // namespace extensions
OLDNEW
« no previous file with comments | « extensions/common/matcher/string_pattern.h ('k') | extensions/common/matcher/string_pattern_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698