Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / chrome / browser / extensions / test_extension_prefs.cc
index 276980a..6ea55b7 100644 (file)
@@ -117,20 +117,21 @@ void TestExtensionPrefs::RecreateExtensionPrefs() {
       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");
@@ -169,7 +170,8 @@ scoped_refptr<Extension> TestExtensionPrefs::AddExtensionWithManifestAndFlags(
   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();
 }