Update To 11.40.268.0
[platform/framework/web/crosswalk.git] / src / chrome / installer / setup / setup_main.cc
index b02be69..70fb2d3 100644 (file)
@@ -1207,16 +1207,7 @@ bool HandleNonInstallCmdLineOptions(const InstallationState& original_state,
     }
   } else if (cmd_line.HasSwitch(installer::switches::kReenableAutoupdates)) {
     // setup.exe has been asked to attempt to reenable updates for Chrome.
-    // Figure out whether we should do so for the multi binaries or the main
-    // Chrome product.
-    BrowserDistribution::Type dist_type = BrowserDistribution::CHROME_BROWSER;
-    if (installer_state->is_multi_install())
-      dist_type = BrowserDistribution::CHROME_BINARIES;
-
-    BrowserDistribution* dist =
-        BrowserDistribution::GetSpecificDistribution(dist_type);
-    bool updates_enabled =
-        GoogleUpdateSettings::ReenableAutoupdatesForApp(dist->GetAppGuid());
+    bool updates_enabled = GoogleUpdateSettings::ReenableAutoupdates();
     *exit_code = updates_enabled ? installer::REENABLE_UPDATES_SUCCEEDED :
                                    installer::REENABLE_UPDATES_FAILED;
   } else {