extension_pref_value_map_.get(),
ExtensionsBrowserClient::Get()->CreateAppSorting().Pass(),
extensions_disabled_,
+ std::vector<ExtensionPrefsObserver*>(),
// Guarantee that no two extensions get the same installation time
// stamp and we can reliably assert the installation order in the tests.
- scoped_ptr<ExtensionPrefs::TimeProvider>(
- new IncrementalTimeProvider())));
+ scoped_ptr<ExtensionPrefs::TimeProvider>(new IncrementalTimeProvider())));
}
-scoped_refptr<Extension> TestExtensionPrefs::AddExtension(std::string name) {
+scoped_refptr<Extension> TestExtensionPrefs::AddExtension(
+ const std::string& name) {
base::DictionaryValue dictionary;
dictionary.SetString(manifest_keys::kName, name);
dictionary.SetString(manifest_keys::kVersion, "0.1");
return AddExtensionWithManifest(dictionary, Manifest::INTERNAL);
}
-scoped_refptr<Extension> TestExtensionPrefs::AddApp(std::string name) {
+scoped_refptr<Extension> TestExtensionPrefs::AddApp(const std::string& name) {
base::DictionaryValue dictionary;
dictionary.SetString(manifest_keys::kName, name);
dictionary.SetString(manifest_keys::kVersion, "0.1");
return extension;
}
-std::string TestExtensionPrefs::AddExtensionAndReturnId(std::string name) {
+std::string TestExtensionPrefs::AddExtensionAndReturnId(
+ const std::string& name) {
scoped_refptr<Extension> extension(AddExtension(name));
return extension->id();
}