diff options
author | erikwright@chromium.org <erikwright@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-10-08 17:53:31 +0000 |
---|---|---|
committer | erikwright@chromium.org <erikwright@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-10-08 17:53:31 +0000 |
commit | 2c05d9130a944565f6cd34f9e2c2aca0312e9c13 (patch) | |
tree | a79718504bfbbd98db2ab450cc584b95f2689e7e /chrome/browser/chrome_browser_main_win.cc | |
parent | 8f5d65329f6c7812805732a47d33cfd43becd619 (diff) | |
download | chromium_src-2c05d9130a944565f6cd34f9e2c2aca0312e9c13.zip chromium_src-2c05d9130a944565f6cd34f9e2c2aca0312e9c13.tar.gz chromium_src-2c05d9130a944565f6cd34f9e2c2aca0312e9c13.tar.bz2 |
Implement install module verification metric.
BUG=297675
NOTRY=True
Review URL: https://codereview.chromium.org/23513049
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@227542 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/chrome_browser_main_win.cc')
-rw-r--r-- | chrome/browser/chrome_browser_main_win.cc | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/chrome/browser/chrome_browser_main_win.cc b/chrome/browser/chrome_browser_main_win.cc index 16a6452..7be7e23 100644 --- a/chrome/browser/chrome_browser_main_win.cc +++ b/chrome/browser/chrome_browser_main_win.cc @@ -22,6 +22,7 @@ #include "base/win/windows_version.h" #include "base/win/wrapped_window_proc.h" #include "chrome/browser/browser_util_win.h" +#include "chrome/browser/install_module_verifier_win.h" #include "chrome/browser/profiles/profile_info_cache.h" #include "chrome/browser/profiles/profile_shortcut_manager.h" #include "chrome/browser/shell_integration.h" @@ -38,6 +39,7 @@ #include "chrome/installer/util/install_util.h" #include "chrome/installer/util/l10n_string_util.h" #include "chrome/installer/util/shell_util.h" +#include "content/public/browser/browser_thread.h" #include "content/public/common/main_function_params.h" #include "grit/app_locale_settings.h" #include "grit/chromium_strings.h" @@ -224,6 +226,18 @@ void ChromeBrowserMainPartsWin::ShowMissingLocaleMessageBox() { MB_OK | MB_ICONERROR | MB_TOPMOST); } +void ChromeBrowserMainPartsWin::PostBrowserStart() { + ChromeBrowserMainParts::PostBrowserStart(); + + // Set up a task to verify installed modules in the current process. Use a + // delay to reduce the impact on startup time. + content::BrowserThread::GetMessageLoopProxyForThread( + content::BrowserThread::UI)->PostDelayedTask( + FROM_HERE, + base::Bind(&BeginModuleVerification), + base::TimeDelta::FromSeconds(45)); +} + // static void ChromeBrowserMainPartsWin::PrepareRestartOnCrashEnviroment( const CommandLine& parsed_command_line) { |