Upstream version 9.38.198.0
[platform/framework/web/crosswalk.git] / src / chrome / browser / sync / test / integration / sync_extension_helper.cc
index 6ff3938..eb0b9d5 100644 (file)
@@ -18,6 +18,7 @@
 #include "extensions/browser/extension_registry.h"
 #include "extensions/browser/extension_system.h"
 #include "extensions/browser/install_flag.h"
+#include "extensions/browser/uninstall_reason.h"
 #include "extensions/common/extension.h"
 #include "extensions/common/extension_set.h"
 #include "extensions/common/id_util.h"
@@ -82,7 +83,8 @@ void SyncExtensionHelper::UninstallExtension(
     Profile* profile, const std::string& name) {
   ExtensionService::UninstallExtensionHelper(
       extensions::ExtensionSystem::Get(profile)->extension_service(),
-      extensions::id_util::GenerateId(name));
+      extensions::id_util::GenerateId(name),
+      extensions::UNINSTALL_REASON_SYNC);
 }
 
 std::vector<std::string> SyncExtensionHelper::GetInstalledExtensionNames(