Don't compile Windows chrome_cleaner prompt code on other OSes

srt_chrome_prompt_impl.cc is code that is only used in Windows
but was compiled for all operating systems. Since it uses constants
that only exist in Windows it's kind of lucky that it doesn't
cause any problems, except in some jumbo build experiments where
there was linker errors.

(TBR for name change in BUILD.gn)
TBR=nparker@chromium.org

Bug: 904958
Change-Id: If1e3f76c7bc913d4041d0cb38b4891d898d24506
Reviewed-on: https://chromium-review.googlesource.com/c/1350870
Reviewed-by: Daniel Bratell <bratell@opera.com>
Reviewed-by: Demetrios Papadopoulos <dpapad@chromium.org>
Reviewed-by: Joe Mason <joenotcharles@google.com>
Commit-Queue: Daniel Bratell <bratell@opera.com>
Cr-Commit-Position: refs/heads/master@{#616067}
diff --git a/chrome/browser/safe_browsing/BUILD.gn b/chrome/browser/safe_browsing/BUILD.gn
index 4e16a6fa..1d1d47c 100644
--- a/chrome/browser/safe_browsing/BUILD.gn
+++ b/chrome/browser/safe_browsing/BUILD.gn
@@ -42,14 +42,14 @@
       "chrome_cleaner/chrome_cleaner_reboot_dialog_controller_win.h",
       "chrome_cleaner/chrome_cleaner_runner_win.cc",
       "chrome_cleaner/chrome_cleaner_runner_win.h",
-      "chrome_cleaner/chrome_cleaner_scanner_results.cc",
-      "chrome_cleaner/chrome_cleaner_scanner_results.h",
+      "chrome_cleaner/chrome_cleaner_scanner_results_win.cc",
+      "chrome_cleaner/chrome_cleaner_scanner_results_win.h",
       "chrome_cleaner/reporter_runner_win.cc",
       "chrome_cleaner/reporter_runner_win.h",
       "chrome_cleaner/settings_resetter_win.cc",
       "chrome_cleaner/settings_resetter_win.h",
-      "chrome_cleaner/srt_chrome_prompt_impl.cc",
-      "chrome_cleaner/srt_chrome_prompt_impl.h",
+      "chrome_cleaner/srt_chrome_prompt_impl_win.cc",
+      "chrome_cleaner/srt_chrome_prompt_impl_win.h",
       "chrome_cleaner/srt_client_info_win.cc",
       "chrome_cleaner/srt_client_info_win.h",
       "chrome_cleaner/srt_field_trial_win.cc",
diff --git a/chrome/browser/safe_browsing/chrome_cleaner/chrome_cleaner_controller_impl_win.h b/chrome/browser/safe_browsing/chrome_cleaner/chrome_cleaner_controller_impl_win.h
index 645ec18..1c32ce8 100644
--- a/chrome/browser/safe_browsing/chrome_cleaner/chrome_cleaner_controller_impl_win.h
+++ b/chrome/browser/safe_browsing/chrome_cleaner/chrome_cleaner_controller_impl_win.h
@@ -15,7 +15,7 @@
 #include "base/observer_list.h"
 #include "base/threading/thread_checker.h"
 #include "chrome/browser/safe_browsing/chrome_cleaner/chrome_cleaner_runner_win.h"
-#include "chrome/browser/safe_browsing/chrome_cleaner/chrome_cleaner_scanner_results.h"
+#include "chrome/browser/safe_browsing/chrome_cleaner/chrome_cleaner_scanner_results_win.h"
 #include "components/component_updater/component_updater_service.h"
 
 namespace safe_browsing {
diff --git a/chrome/browser/safe_browsing/chrome_cleaner/chrome_cleaner_controller_win.h b/chrome/browser/safe_browsing/chrome_cleaner/chrome_cleaner_controller_win.h
index dae7ce3a..f9cb186 100644
--- a/chrome/browser/safe_browsing/chrome_cleaner/chrome_cleaner_controller_win.h
+++ b/chrome/browser/safe_browsing/chrome_cleaner/chrome_cleaner_controller_win.h
@@ -12,7 +12,7 @@
 #include "base/files/file_path.h"
 #include "base/macros.h"
 #include "chrome/browser/extensions/extension_service.h"
-#include "chrome/browser/safe_browsing/chrome_cleaner/chrome_cleaner_scanner_results.h"
+#include "chrome/browser/safe_browsing/chrome_cleaner/chrome_cleaner_scanner_results_win.h"
 #include "chrome/browser/safe_browsing/chrome_cleaner/reporter_runner_win.h"
 #include "components/chrome_cleaner/public/interfaces/chrome_prompt.mojom.h"
 
diff --git a/chrome/browser/safe_browsing/chrome_cleaner/chrome_cleaner_runner_win.h b/chrome/browser/safe_browsing/chrome_cleaner/chrome_cleaner_runner_win.h
index 41b96a6..2ac468e 100644
--- a/chrome/browser/safe_browsing/chrome_cleaner/chrome_cleaner_runner_win.h
+++ b/chrome/browser/safe_browsing/chrome_cleaner/chrome_cleaner_runner_win.h
@@ -18,7 +18,7 @@
 #include "base/process/process.h"
 #include "base/sequenced_task_runner.h"
 #include "chrome/browser/safe_browsing/chrome_cleaner/reporter_runner_win.h"
-#include "chrome/browser/safe_browsing/chrome_cleaner/srt_chrome_prompt_impl.h"
+#include "chrome/browser/safe_browsing/chrome_cleaner/srt_chrome_prompt_impl_win.h"
 #include "components/chrome_cleaner/public/interfaces/chrome_prompt.mojom.h"
 #include "content/public/browser/browser_thread.h"
 #include "extensions/browser/extension_system.h"
diff --git a/chrome/browser/safe_browsing/chrome_cleaner/chrome_cleaner_runner_win_unittest.cc b/chrome/browser/safe_browsing/chrome_cleaner/chrome_cleaner_runner_win_unittest.cc
index d4f6cc9..8314972 100644
--- a/chrome/browser/safe_browsing/chrome_cleaner/chrome_cleaner_runner_win_unittest.cc
+++ b/chrome/browser/safe_browsing/chrome_cleaner/chrome_cleaner_runner_win_unittest.cc
@@ -257,8 +257,8 @@
   ~ChromeCleanerRunnerTest() override {}
 
   void SetUp() override {
-    // Set up the testing profile, so chrome_cleaner_scanner_results can get the
-    // extensions registry from it.
+    // Set up the testing profile, so chrome_cleaner_scanner_results_win can get
+    // the extensions registry from it.
     ASSERT_TRUE(profile_manager_.SetUp());
     testing_profile_ = profile_manager_.CreateTestingProfile("Profile 1");
     MockChromeCleanerProcess::AddMockExtensionsToProfile(testing_profile_);
diff --git a/chrome/browser/safe_browsing/chrome_cleaner/chrome_cleaner_scanner_results.cc b/chrome/browser/safe_browsing/chrome_cleaner/chrome_cleaner_scanner_results_win.cc
similarity index 97%
rename from chrome/browser/safe_browsing/chrome_cleaner/chrome_cleaner_scanner_results.cc
rename to chrome/browser/safe_browsing/chrome_cleaner/chrome_cleaner_scanner_results_win.cc
index 670fdf3..431e501 100644
--- a/chrome/browser/safe_browsing/chrome_cleaner/chrome_cleaner_scanner_results.cc
+++ b/chrome/browser/safe_browsing/chrome_cleaner/chrome_cleaner_scanner_results_win.cc
@@ -2,7 +2,7 @@
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
 
-#include "chrome/browser/safe_browsing/chrome_cleaner/chrome_cleaner_scanner_results.h"
+#include "chrome/browser/safe_browsing/chrome_cleaner/chrome_cleaner_scanner_results_win.h"
 
 #include "chrome/browser/profiles/profile_manager.h"
 #include "chrome/browser/safe_browsing/chrome_cleaner/chrome_cleaner_extension_util_win.h"
diff --git a/chrome/browser/safe_browsing/chrome_cleaner/chrome_cleaner_scanner_results.h b/chrome/browser/safe_browsing/chrome_cleaner/chrome_cleaner_scanner_results_win.h
similarity index 95%
rename from chrome/browser/safe_browsing/chrome_cleaner/chrome_cleaner_scanner_results.h
rename to chrome/browser/safe_browsing/chrome_cleaner/chrome_cleaner_scanner_results_win.h
index 569c9472..fe73695 100644
--- a/chrome/browser/safe_browsing/chrome_cleaner/chrome_cleaner_scanner_results.h
+++ b/chrome/browser/safe_browsing/chrome_cleaner/chrome_cleaner_scanner_results_win.h
@@ -2,8 +2,8 @@
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
 
-#ifndef CHROME_BROWSER_SAFE_BROWSING_CHROME_CLEANER_CHROME_CLEANER_SCANNER_RESULTS_H_
-#define CHROME_BROWSER_SAFE_BROWSING_CHROME_CLEANER_CHROME_CLEANER_SCANNER_RESULTS_H_
+#ifndef CHROME_BROWSER_SAFE_BROWSING_CHROME_CLEANER_CHROME_CLEANER_SCANNER_RESULTS_WIN_H_
+#define CHROME_BROWSER_SAFE_BROWSING_CHROME_CLEANER_CHROME_CLEANER_SCANNER_RESULTS_WIN_H_
 
 #include <set>
 
@@ -49,4 +49,4 @@
 
 }  // namespace safe_browsing
 
-#endif  // CHROME_BROWSER_SAFE_BROWSING_CHROME_CLEANER_CHROME_CLEANER_SCANNER_RESULTS_H_
+#endif  // CHROME_BROWSER_SAFE_BROWSING_CHROME_CLEANER_CHROME_CLEANER_SCANNER_RESULTS_WIN_H_
diff --git a/chrome/browser/safe_browsing/chrome_cleaner/srt_chrome_prompt_impl.cc b/chrome/browser/safe_browsing/chrome_cleaner/srt_chrome_prompt_impl_win.cc
similarity index 99%
rename from chrome/browser/safe_browsing/chrome_cleaner/srt_chrome_prompt_impl.cc
rename to chrome/browser/safe_browsing/chrome_cleaner/srt_chrome_prompt_impl_win.cc
index 96af84c..abd76968 100644
--- a/chrome/browser/safe_browsing/chrome_cleaner/srt_chrome_prompt_impl.cc
+++ b/chrome/browser/safe_browsing/chrome_cleaner/srt_chrome_prompt_impl_win.cc
@@ -2,7 +2,7 @@
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
 
-#include "chrome/browser/safe_browsing/chrome_cleaner/srt_chrome_prompt_impl.h"
+#include "chrome/browser/safe_browsing/chrome_cleaner/srt_chrome_prompt_impl_win.h"
 
 #include <algorithm>
 #include <string>
diff --git a/chrome/browser/safe_browsing/chrome_cleaner/srt_chrome_prompt_impl.h b/chrome/browser/safe_browsing/chrome_cleaner/srt_chrome_prompt_impl_win.h
similarity index 95%
rename from chrome/browser/safe_browsing/chrome_cleaner/srt_chrome_prompt_impl.h
rename to chrome/browser/safe_browsing/chrome_cleaner/srt_chrome_prompt_impl_win.h
index d492cfe..fe409659 100644
--- a/chrome/browser/safe_browsing/chrome_cleaner/srt_chrome_prompt_impl.h
+++ b/chrome/browser/safe_browsing/chrome_cleaner/srt_chrome_prompt_impl_win.h
@@ -2,8 +2,8 @@
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
 
-#ifndef CHROME_BROWSER_SAFE_BROWSING_CHROME_CLEANER_SRT_CHROME_PROMPT_IMPL_H_
-#define CHROME_BROWSER_SAFE_BROWSING_CHROME_CLEANER_SRT_CHROME_PROMPT_IMPL_H_
+#ifndef CHROME_BROWSER_SAFE_BROWSING_CHROME_CLEANER_SRT_CHROME_PROMPT_IMPL_WIN_H_
+#define CHROME_BROWSER_SAFE_BROWSING_CHROME_CLEANER_SRT_CHROME_PROMPT_IMPL_WIN_H_
 
 #include <memory>
 #include <set>
@@ -14,7 +14,7 @@
 #include "base/macros.h"
 #include "base/optional.h"
 #include "chrome/browser/extensions/extension_service.h"
-#include "chrome/browser/safe_browsing/chrome_cleaner/chrome_cleaner_scanner_results.h"
+#include "chrome/browser/safe_browsing/chrome_cleaner/chrome_cleaner_scanner_results_win.h"
 #include "components/chrome_cleaner/public/interfaces/chrome_prompt.mojom.h"
 #include "mojo/public/cpp/bindings/binding.h"
 
@@ -57,4 +57,4 @@
 
 }  // namespace safe_browsing
 
-#endif  // CHROME_BROWSER_SAFE_BROWSING_CHROME_CLEANER_SRT_CHROME_PROMPT_IMPL_H_
+#endif  // CHROME_BROWSER_SAFE_BROWSING_CHROME_CLEANER_SRT_CHROME_PROMPT_IMPL_WIN_H_
diff --git a/chrome/browser/safe_browsing/chrome_cleaner/srt_delete_extension_win_unittest.cc b/chrome/browser/safe_browsing/chrome_cleaner/srt_delete_extension_win_unittest.cc
index dcded8f1..9c14e1a 100644
--- a/chrome/browser/safe_browsing/chrome_cleaner/srt_delete_extension_win_unittest.cc
+++ b/chrome/browser/safe_browsing/chrome_cleaner/srt_delete_extension_win_unittest.cc
@@ -2,7 +2,7 @@
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
 
-#include "chrome/browser/safe_browsing/chrome_cleaner/srt_chrome_prompt_impl.h"
+#include "chrome/browser/safe_browsing/chrome_cleaner/srt_chrome_prompt_impl_win.h"
 
 #include <vector>
 
diff --git a/chrome/browser/ui/webui/settings/chrome_cleanup_handler.h b/chrome/browser/ui/webui/settings/chrome_cleanup_handler.h
index 237e114..eb8df32 100644
--- a/chrome/browser/ui/webui/settings/chrome_cleanup_handler.h
+++ b/chrome/browser/ui/webui/settings/chrome_cleanup_handler.h
@@ -10,7 +10,7 @@
 #include "base/files/file_path.h"
 #include "base/macros.h"
 #include "chrome/browser/safe_browsing/chrome_cleaner/chrome_cleaner_controller_win.h"
-#include "chrome/browser/safe_browsing/chrome_cleaner/chrome_cleaner_scanner_results.h"
+#include "chrome/browser/safe_browsing/chrome_cleaner/chrome_cleaner_scanner_results_win.h"
 #include "chrome/browser/ui/webui/settings/settings_page_ui_handler.h"
 #include "components/prefs/pref_change_registrar.h"