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

Unified Diff: chrome/common/extensions/extension_extent.cc

Issue 4687005: Track permissions granted to extensions in prefs (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 10 years, 1 month 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/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());
+}

Powered by Google App Engine
This is Rietveld 408576698