Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(175)

Side by Side Diff: chrome/browser/chrome_browser_main_win.cc

Issue 14556015: [Media Galleries] Lazily initialize the storage monitor. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Rebase Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 203 matching lines...) Expand 10 before | Expand all | Expand 10 after
214 } 214 }
215 } 215 }
216 } 216 }
217 217
218 void ChromeBrowserMainPartsWin::PreProfileInit() { 218 void ChromeBrowserMainPartsWin::PreProfileInit() {
219 storage_monitor_.reset(chrome::StorageMonitorWin::Create()); 219 storage_monitor_.reset(chrome::StorageMonitorWin::Create());
220 220
221 ChromeBrowserMainParts::PreProfileInit(); 221 ChromeBrowserMainParts::PreProfileInit();
222 } 222 }
223 223
224 void ChromeBrowserMainPartsWin::PostProfileInit() {
225 storage_monitor_->Init();
226
227 ChromeBrowserMainParts::PostProfileInit();
228 }
229
230 void ChromeBrowserMainPartsWin::ShowMissingLocaleMessageBox() { 224 void ChromeBrowserMainPartsWin::ShowMissingLocaleMessageBox() {
231 ui::MessageBox(NULL, ASCIIToUTF16(chrome_browser::kMissingLocaleDataMessage), 225 ui::MessageBox(NULL, ASCIIToUTF16(chrome_browser::kMissingLocaleDataMessage),
232 ASCIIToUTF16(chrome_browser::kMissingLocaleDataTitle), 226 ASCIIToUTF16(chrome_browser::kMissingLocaleDataTitle),
233 MB_OK | MB_ICONERROR | MB_TOPMOST); 227 MB_OK | MB_ICONERROR | MB_TOPMOST);
234 } 228 }
235 229
236 // static 230 // static
237 void ChromeBrowserMainPartsWin::PrepareRestartOnCrashEnviroment( 231 void ChromeBrowserMainPartsWin::PrepareRestartOnCrashEnviroment(
238 const CommandLine& parsed_command_line) { 232 const CommandLine& parsed_command_line) {
239 // Clear this var so child processes don't show the dialog by default. 233 // 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
402 if (resource_id) 396 if (resource_id)
403 return l10n_util::GetStringUTF16(resource_id); 397 return l10n_util::GetStringUTF16(resource_id);
404 return string16(); 398 return string16();
405 } 399 }
406 400
407 // static 401 // static
408 void ChromeBrowserMainPartsWin::SetupInstallerUtilStrings() { 402 void ChromeBrowserMainPartsWin::SetupInstallerUtilStrings() {
409 CR_DEFINE_STATIC_LOCAL(TranslationDelegate, delegate, ()); 403 CR_DEFINE_STATIC_LOCAL(TranslationDelegate, delegate, ());
410 installer::SetTranslationDelegate(&delegate); 404 installer::SetTranslationDelegate(&delegate);
411 } 405 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698