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

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

Issue 10910179: Event matching by regular expression matching on URLs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 1 Created 8 years, 3 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 | Annotate | Revision Log
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "chrome/common/extensions/matcher/string_pattern.h"
6
7 namespace extensions {
8
9 StringPattern::StringPattern(const std::string& pattern,
10 StringPattern::ID id)
11 : pattern_(pattern), id_(id) {}
12
13 StringPattern::~StringPattern() {}
14
15 bool StringPattern::operator<(const StringPattern& rhs) const {
16 if (id_ < rhs.id_) return true;
17 if (id_ > rhs.id_) return false;
battre 2012/09/12 18:04:50 as we are toughing the code anyway, I would recomm
Yoyo Zhou 2012/09/12 20:25:56 Done.
18 return pattern_ < rhs.pattern_;
19 }
20
21 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698