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

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

Issue 1025613003: Fix for ERROR:url_pattern_set.cc(240)] Invalid url pattern: chrome://print/* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Changes as per review comments. Created 5 years, 8 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/test_extension_prefs.cc
diff --git a/chrome/browser/extensions/test_extension_prefs.cc b/chrome/browser/extensions/test_extension_prefs.cc
index 4c98c5a12da221cfe0a06c7ee5c9a6271a0e2e99..35bc4be50fc3c7e514ebe20c8a358e2fef10c016 100644
--- a/chrome/browser/extensions/test_extension_prefs.cc
+++ b/chrome/browser/extensions/test_extension_prefs.cc
@@ -132,6 +132,15 @@ scoped_refptr<Extension> TestExtensionPrefs::AddExtension(
return AddExtensionWithManifest(dictionary, Manifest::INTERNAL);
}
+scoped_refptr<Extension> TestExtensionPrefs::AddExtensionWithManifestLocation(
+ const std::string& name,
+ Manifest::Location location) {
+ base::DictionaryValue dictionary;
+ dictionary.SetString(manifest_keys::kName, name);
+ dictionary.SetString(manifest_keys::kVersion, "0.1");
+ return AddExtensionWithManifest(dictionary, location);
+}
+
scoped_refptr<Extension> TestExtensionPrefs::AddApp(const std::string& name) {
base::DictionaryValue dictionary;
dictionary.SetString(manifest_keys::kName, name);

Powered by Google App Engine
This is Rietveld 408576698