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

Unified Diff: chrome/browser/extensions/menu_manager.cc

Issue 10809094: Context Menus now uses the JSON Schema Compiler. (Closed) Base URL: http://git.chromium.org/chromium/src.git@json_functions_as_properties
Patch Set: switchy switch switch switch switch switch. switchy switch. Created 8 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
Index: chrome/browser/extensions/menu_manager.cc
diff --git a/chrome/browser/extensions/menu_manager.cc b/chrome/browser/extensions/menu_manager.cc
index e599f3bd238cfba0ce9ff0075d3ee8f225ea2500..7a5e358666c4092e9086004fd7120cb66ec23c11 100644
--- a/chrome/browser/extensions/menu_manager.cc
+++ b/chrome/browser/extensions/menu_manager.cc
@@ -268,6 +268,25 @@ bool MenuItem::PopulateURLPatterns(const DictionaryValue& properties,
return true;
not at google - send to devlin 2012/07/30 15:36:53 ditto
chebert 2012/07/30 22:45:19 see menu_manager.h On 2012/07/30 15:36:53, kalman
}
+bool MenuItem::PopulateURLPatterns(
+ std::vector<std::string>* document_url_patterns,
+ std::vector<std::string>* target_url_patterns,
+ std::string* error) {
+ if (document_url_patterns) {
+ if (!document_url_patterns_.Populate(
+ *document_url_patterns, URLPattern::SCHEME_ALL, true, error)) {
+ return false;
+ }
+ }
+ if (target_url_patterns) {
+ if (!target_url_patterns_.Populate(
+ *target_url_patterns, URLPattern::SCHEME_ALL, true, error)) {
+ return false;
+ }
+ }
+ return true;
+}
+
MenuManager::MenuManager(Profile* profile)
: profile_(profile) {
registrar_.Add(this, chrome::NOTIFICATION_EXTENSION_LOADED,

Powered by Google App Engine
This is Rietveld 408576698