| OLD | NEW |
| 1 // Copyright (c) 2014 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/browser/component_updater/sw_reporter_installer_win.h" | 5 #include "chrome/browser/component_updater/sw_reporter_installer_win.h" |
| 6 | 6 |
| 7 #include <stdint.h> | 7 #include <stdint.h> |
| 8 | 8 |
| 9 #include <algorithm> | 9 #include <algorithm> |
| 10 #include <map> | 10 #include <map> |
| (...skipping 483 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 494 registry->RegisterInt64Pref(prefs::kSwReporterLastTimeSentReport, 0); | 494 registry->RegisterInt64Pref(prefs::kSwReporterLastTimeSentReport, 0); |
| 495 } | 495 } |
| 496 | 496 |
| 497 void RegisterProfilePrefsForSwReporter( | 497 void RegisterProfilePrefsForSwReporter( |
| 498 user_prefs::PrefRegistrySyncable* registry) { | 498 user_prefs::PrefRegistrySyncable* registry) { |
| 499 registry->RegisterStringPref(prefs::kSwReporterPromptVersion, ""); | 499 registry->RegisterStringPref(prefs::kSwReporterPromptVersion, ""); |
| 500 | 500 |
| 501 registry->RegisterStringPref(prefs::kSwReporterPromptSeed, ""); | 501 registry->RegisterStringPref(prefs::kSwReporterPromptSeed, ""); |
| 502 } | 502 } |
| 503 | 503 |
| 504 void RegisterUserInitiatedSwReporterScan(base::Closure callback) { |
| 505 // Fetch the latest version of the Cleanup component and run it, |
| 506 // bypassing the usual scheduling logic. Once the scan is done, report |
| 507 // whether the scan was successful and the names of the Unwanted Software that |
| 508 // can be removed by the Cleanup tool. |
| 509 // TODO(proberge): Implement me. |
| 510 callback.Run(); |
| 511 } |
| 512 |
| 504 } // namespace component_updater | 513 } // namespace component_updater |
| OLD | NEW |