| 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 #include "chrome/browser/chrome_browser_main_win.h" | 5 #include "chrome/browser/chrome_browser_main_win.h" |
| 6 | 6 |
| 7 #include <windows.h> | 7 #include <windows.h> |
| 8 #include <shellapi.h> | 8 #include <shellapi.h> |
| 9 | 9 |
| 10 #include <algorithm> | 10 #include <algorithm> |
| (...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 215 } | 215 } |
| 216 } | 216 } |
| 217 } | 217 } |
| 218 | 218 |
| 219 void ChromeBrowserMainPartsWin::PreProfileInit() { | 219 void ChromeBrowserMainPartsWin::PreProfileInit() { |
| 220 storage_monitor_.reset(chrome::StorageMonitorWin::Create()); | 220 storage_monitor_.reset(chrome::StorageMonitorWin::Create()); |
| 221 | 221 |
| 222 ChromeBrowserMainParts::PreProfileInit(); | 222 ChromeBrowserMainParts::PreProfileInit(); |
| 223 } | 223 } |
| 224 | 224 |
| 225 void ChromeBrowserMainPartsWin::PostProfileInit() { | |
| 226 storage_monitor_->Init(); | |
| 227 | |
| 228 ChromeBrowserMainParts::PostProfileInit(); | |
| 229 } | |
| 230 | |
| 231 void ChromeBrowserMainPartsWin::ShowMissingLocaleMessageBox() { | 225 void ChromeBrowserMainPartsWin::ShowMissingLocaleMessageBox() { |
| 232 ui::MessageBox(NULL, ASCIIToUTF16(chrome_browser::kMissingLocaleDataMessage), | 226 ui::MessageBox(NULL, ASCIIToUTF16(chrome_browser::kMissingLocaleDataMessage), |
| 233 ASCIIToUTF16(chrome_browser::kMissingLocaleDataTitle), | 227 ASCIIToUTF16(chrome_browser::kMissingLocaleDataTitle), |
| 234 MB_OK | MB_ICONERROR | MB_TOPMOST); | 228 MB_OK | MB_ICONERROR | MB_TOPMOST); |
| 235 } | 229 } |
| 236 | 230 |
| 237 // static | 231 // static |
| 238 void ChromeBrowserMainPartsWin::PrepareRestartOnCrashEnviroment( | 232 void ChromeBrowserMainPartsWin::PrepareRestartOnCrashEnviroment( |
| 239 const CommandLine& parsed_command_line) { | 233 const CommandLine& parsed_command_line) { |
| 240 // Clear this var so child processes don't show the dialog by default. | 234 // Clear this var so child processes don't show the dialog by default. |
| (...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 403 if (resource_id) | 397 if (resource_id) |
| 404 return l10n_util::GetStringUTF16(resource_id); | 398 return l10n_util::GetStringUTF16(resource_id); |
| 405 return string16(); | 399 return string16(); |
| 406 } | 400 } |
| 407 | 401 |
| 408 // static | 402 // static |
| 409 void ChromeBrowserMainPartsWin::SetupInstallerUtilStrings() { | 403 void ChromeBrowserMainPartsWin::SetupInstallerUtilStrings() { |
| 410 CR_DEFINE_STATIC_LOCAL(TranslationDelegate, delegate, ()); | 404 CR_DEFINE_STATIC_LOCAL(TranslationDelegate, delegate, ()); |
| 411 installer::SetTranslationDelegate(&delegate); | 405 installer::SetTranslationDelegate(&delegate); |
| 412 } | 406 } |
| OLD | NEW |