Chromium Code Reviews| Index: chrome/common/extensions/extension_extent.cc |
| diff --git a/chrome/common/extensions/extension_extent.cc b/chrome/common/extensions/extension_extent.cc |
| index 5b8260af2a290ea3ee790caebdbff590430cc5ae..8a67bbfe5895b90b25b56c9252036691624c7ea9 100644 |
| --- a/chrome/common/extensions/extension_extent.cc |
| +++ b/chrome/common/extensions/extension_extent.cc |
| @@ -2,6 +2,7 @@ |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| +#include "base/logging.h" |
| #include "chrome/common/extensions/extension_extent.h" |
| #include "chrome/common/extensions/url_pattern.h" |
| @@ -58,3 +59,12 @@ bool ExtensionExtent::OverlapsWith(const ExtensionExtent& other) const { |
| return false; |
| } |
| + |
| +void ExtensionExtent::GetAsStringSet( |
|
Aaron Boodman
2010/11/12 00:05:24
It seems ugly somehow to pass these around as stri
jstritar
2010/11/19 21:38:36
Done. I now have an "AddPattern" helper method in
|
| + std::set<std::string>* string_patterns) const { |
| + DCHECK(string_patterns); |
| + |
| + for (PatternList::const_iterator i = patterns().begin(); |
| + i != patterns().end(); ++i) |
| + string_patterns->insert(i->GetAsString()); |
| +} |