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

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

Issue 10217018: Alarm resolution changed to minutes and minimum delay added. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Sinked. Created 8 years, 7 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/extension_function_test_utils.cc
diff --git a/chrome/browser/extensions/extension_function_test_utils.cc b/chrome/browser/extensions/extension_function_test_utils.cc
index f5561f3312270d7157a0643c83863dc87ec04919..40c0c9af9b3252829ab086a15e4f7ecf8a575aa8 100644
--- a/chrome/browser/extensions/extension_function_test_utils.cc
+++ b/chrome/browser/extensions/extension_function_test_utils.cc
@@ -98,13 +98,18 @@ base::ListValue* ToList(base::Value* val) {
}
scoped_refptr<Extension> CreateEmptyExtension() {
+ return CreateEmptyExtensionWithLocation(Extension::INTERNAL);
+}
+
+scoped_refptr<Extension> CreateEmptyExtensionWithLocation(
+ Extension::Location location) {
std::string error;
const FilePath test_extension_path;
scoped_ptr<base::DictionaryValue> test_extension_value(
ParseDictionary("{\"name\": \"Test\", \"version\": \"1.0\"}"));
scoped_refptr<Extension> extension(Extension::Create(
test_extension_path,
- Extension::INTERNAL,
+ location,
*test_extension_value.get(),
Extension::NO_FLAGS,
&error));
« no previous file with comments | « chrome/browser/extensions/extension_function_test_utils.h ('k') | chrome/common/extensions/api/experimental.alarms.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698