| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 // Contains functions used by BrowserMain() that are win32-specific. | 5 // Contains functions used by BrowserMain() that are win32-specific. |
| 6 | 6 |
| 7 #ifndef CHROME_BROWSER_CHROME_BROWSER_MAIN_WIN_H_ | 7 #ifndef CHROME_BROWSER_CHROME_BROWSER_MAIN_WIN_H_ |
| 8 #define CHROME_BROWSER_CHROME_BROWSER_MAIN_WIN_H_ | 8 #define CHROME_BROWSER_CHROME_BROWSER_MAIN_WIN_H_ |
| 9 | 9 |
| 10 #include "base/files/file_path_watcher.h" | 10 #include "base/files/file_path_watcher.h" |
| 11 #include "base/macros.h" | 11 #include "base/macros.h" |
| 12 #include "chrome/browser/chrome_browser_main.h" | 12 #include "chrome/browser/chrome_browser_main.h" |
| 13 #include "third_party/kasko/kasko_features.h" | |
| 14 | 13 |
| 15 class DidRunUpdater; | 14 class DidRunUpdater; |
| 16 class ModuleWatcher; | 15 class ModuleWatcher; |
| 17 | 16 |
| 18 namespace base { | 17 namespace base { |
| 19 class CommandLine; | 18 class CommandLine; |
| 20 } | 19 } |
| 21 | 20 |
| 22 // Handle uninstallation when given the appropriate the command-line switch. | 21 // Handle uninstallation when given the appropriate the command-line switch. |
| 23 // If |chrome_still_running| is true a modal dialog will be shown asking the | 22 // If |chrome_still_running| is true a modal dialog will be shown asking the |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 static bool CheckMachineLevelInstall(); | 66 static bool CheckMachineLevelInstall(); |
| 68 | 67 |
| 69 // Sets the TranslationDelegate which provides localized strings to | 68 // Sets the TranslationDelegate which provides localized strings to |
| 70 // installer_util. | 69 // installer_util. |
| 71 static void SetupInstallerUtilStrings(); | 70 static void SetupInstallerUtilStrings(); |
| 72 | 71 |
| 73 private: | 72 private: |
| 74 #if defined(GOOGLE_CHROME_BUILD) | 73 #if defined(GOOGLE_CHROME_BUILD) |
| 75 std::unique_ptr<DidRunUpdater> did_run_updater_; | 74 std::unique_ptr<DidRunUpdater> did_run_updater_; |
| 76 #endif | 75 #endif |
| 77 #if BUILDFLAG(ENABLE_KASKO) | |
| 78 // Cleans up Kasko crash reports that exceeded the maximum upload attempts. | |
| 79 base::FilePathWatcher failed_kasko_crash_report_watcher_; | |
| 80 #endif | |
| 81 | 76 |
| 82 std::unique_ptr<ModuleWatcher> module_watcher_; | 77 std::unique_ptr<ModuleWatcher> module_watcher_; |
| 83 | 78 |
| 84 DISALLOW_COPY_AND_ASSIGN(ChromeBrowserMainPartsWin); | 79 DISALLOW_COPY_AND_ASSIGN(ChromeBrowserMainPartsWin); |
| 85 }; | 80 }; |
| 86 | 81 |
| 87 #endif // CHROME_BROWSER_CHROME_BROWSER_MAIN_WIN_H_ | 82 #endif // CHROME_BROWSER_CHROME_BROWSER_MAIN_WIN_H_ |
| OLD | NEW |