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 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
198 InitializeWindowProcExceptions(); | 198 InitializeWindowProcExceptions(); |
199 } | 199 } |
200 } | 200 } |
201 | 201 |
202 void ChromeBrowserMainPartsWin::PreProfileInit() { | 202 void ChromeBrowserMainPartsWin::PreProfileInit() { |
203 storage_monitor_.reset(chrome::StorageMonitorWin::Create()); | 203 storage_monitor_.reset(chrome::StorageMonitorWin::Create()); |
204 | 204 |
205 ChromeBrowserMainParts::PreProfileInit(); | 205 ChromeBrowserMainParts::PreProfileInit(); |
206 } | 206 } |
207 | 207 |
208 void ChromeBrowserMainPartsWin::PostProfileInit() { | |
209 storage_monitor_->Init(); | |
210 | |
211 ChromeBrowserMainParts::PostProfileInit(); | |
212 } | |
213 | |
214 void ChromeBrowserMainPartsWin::ShowMissingLocaleMessageBox() { | 208 void ChromeBrowserMainPartsWin::ShowMissingLocaleMessageBox() { |
215 ui::MessageBox(NULL, ASCIIToUTF16(chrome_browser::kMissingLocaleDataMessage), | 209 ui::MessageBox(NULL, ASCIIToUTF16(chrome_browser::kMissingLocaleDataMessage), |
216 ASCIIToUTF16(chrome_browser::kMissingLocaleDataTitle), | 210 ASCIIToUTF16(chrome_browser::kMissingLocaleDataTitle), |
217 MB_OK | MB_ICONERROR | MB_TOPMOST); | 211 MB_OK | MB_ICONERROR | MB_TOPMOST); |
218 } | 212 } |
219 | 213 |
220 // static | 214 // static |
221 void ChromeBrowserMainPartsWin::PrepareRestartOnCrashEnviroment( | 215 void ChromeBrowserMainPartsWin::PrepareRestartOnCrashEnviroment( |
222 const CommandLine& parsed_command_line) { | 216 const CommandLine& parsed_command_line) { |
223 // Clear this var so child processes don't show the dialog by default. | 217 // 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... |
386 if (resource_id) | 380 if (resource_id) |
387 return l10n_util::GetStringUTF16(resource_id); | 381 return l10n_util::GetStringUTF16(resource_id); |
388 return string16(); | 382 return string16(); |
389 } | 383 } |
390 | 384 |
391 // static | 385 // static |
392 void ChromeBrowserMainPartsWin::SetupInstallerUtilStrings() { | 386 void ChromeBrowserMainPartsWin::SetupInstallerUtilStrings() { |
393 CR_DEFINE_STATIC_LOCAL(TranslationDelegate, delegate, ()); | 387 CR_DEFINE_STATIC_LOCAL(TranslationDelegate, delegate, ()); |
394 installer::SetTranslationDelegate(&delegate); | 388 installer::SetTranslationDelegate(&delegate); |
395 } | 389 } |
OLD | NEW |