| 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 | 15 |
| 17 namespace base { | 16 namespace base { |
| 18 class CommandLine; | 17 class CommandLine; |
| 19 } | 18 } |
| 20 | 19 |
| 21 // Handle uninstallation when given the appropriate the command-line switch. | 20 // Handle uninstallation when given the appropriate the command-line switch. |
| 22 // If |chrome_still_running| is true a modal dialog will be shown asking the | 21 // If |chrome_still_running| is true a modal dialog will be shown asking the |
| 23 // user to close the other chrome instance. | 22 // user to close the other chrome instance. |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 static bool CheckMachineLevelInstall(); | 65 static bool CheckMachineLevelInstall(); |
| 67 | 66 |
| 68 // Sets the TranslationDelegate which provides localized strings to | 67 // Sets the TranslationDelegate which provides localized strings to |
| 69 // installer_util. | 68 // installer_util. |
| 70 static void SetupInstallerUtilStrings(); | 69 static void SetupInstallerUtilStrings(); |
| 71 | 70 |
| 72 private: | 71 private: |
| 73 #if defined(GOOGLE_CHROME_BUILD) | 72 #if defined(GOOGLE_CHROME_BUILD) |
| 74 std::unique_ptr<DidRunUpdater> did_run_updater_; | 73 std::unique_ptr<DidRunUpdater> did_run_updater_; |
| 75 #endif | 74 #endif |
| 76 #if BUILDFLAG(ENABLE_KASKO) | |
| 77 // Cleans up Kasko crash reports that exceeded the maximum upload attempts. | |
| 78 base::FilePathWatcher failed_kasko_crash_report_watcher_; | |
| 79 #endif | |
| 80 | 75 |
| 81 DISALLOW_COPY_AND_ASSIGN(ChromeBrowserMainPartsWin); | 76 DISALLOW_COPY_AND_ASSIGN(ChromeBrowserMainPartsWin); |
| 82 }; | 77 }; |
| 83 | 78 |
| 84 #endif // CHROME_BROWSER_CHROME_BROWSER_MAIN_WIN_H_ | 79 #endif // CHROME_BROWSER_CHROME_BROWSER_MAIN_WIN_H_ |
| OLD | NEW |