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

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

Issue 1881043003: Delete the font cache file. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Eliminate a useless "helper" and use PostAfterStartupTask Created 4 years, 8 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #include <stddef.h> 9 #include <stddef.h>
10 10
(...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after
305 305
306 void ChromeBrowserMainPartsWin::ShowMissingLocaleMessageBox() { 306 void ChromeBrowserMainPartsWin::ShowMissingLocaleMessageBox() {
307 ui::MessageBox(NULL, 307 ui::MessageBox(NULL,
308 base::ASCIIToUTF16(chrome_browser::kMissingLocaleDataMessage), 308 base::ASCIIToUTF16(chrome_browser::kMissingLocaleDataMessage),
309 base::ASCIIToUTF16(chrome_browser::kMissingLocaleDataTitle), 309 base::ASCIIToUTF16(chrome_browser::kMissingLocaleDataTitle),
310 MB_OK | MB_ICONERROR | MB_TOPMOST); 310 MB_OK | MB_ICONERROR | MB_TOPMOST);
311 } 311 }
312 312
313 void ChromeBrowserMainPartsWin::PostProfileInit() { 313 void ChromeBrowserMainPartsWin::PostProfileInit() {
314 ChromeBrowserMainParts::PostProfileInit(); 314 ChromeBrowserMainParts::PostProfileInit();
315
316 // TODO(kulshin): delete this function and associated code in 2017.
gab 2016/04/15 14:59:34 s/delete this function and associated code in..../
317 // see http://crbug.com/603718
318 // Attempt to delete the font cache and ignore any errors.
319 base::FilePath path(
320 profile()->GetPath().AppendASCII("ChromeDWriteFontCache"));
321 content::BrowserThread::PostAfterStartupTask(
322 FROM_HERE, content::BrowserThread::GetMessageLoopProxyForThread(
323 content::BrowserThread::FILE),
324 base::Bind(base::IgnoreResult(&base::DeleteFile), path, false));
315 } 325 }
316 326
317 void ChromeBrowserMainPartsWin::PostBrowserStart() { 327 void ChromeBrowserMainPartsWin::PostBrowserStart() {
318 ChromeBrowserMainParts::PostBrowserStart(); 328 ChromeBrowserMainParts::PostBrowserStart();
319 329
320 UMA_HISTOGRAM_BOOLEAN("Windows.Tablet", base::win::IsTabletDevice(nullptr)); 330 UMA_HISTOGRAM_BOOLEAN("Windows.Tablet", base::win::IsTabletDevice(nullptr));
321 331
322 // Set up a task to verify installed modules in the current process. 332 // Set up a task to verify installed modules in the current process.
323 content::BrowserThread::PostAfterStartupTask( 333 content::BrowserThread::PostAfterStartupTask(
324 FROM_HERE, content::BrowserThread::GetBlockingPool(), 334 FROM_HERE, content::BrowserThread::GetBlockingPool(),
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after
511 if (resource_id) 521 if (resource_id)
512 return l10n_util::GetStringUTF16(resource_id); 522 return l10n_util::GetStringUTF16(resource_id);
513 return base::string16(); 523 return base::string16();
514 } 524 }
515 525
516 // static 526 // static
517 void ChromeBrowserMainPartsWin::SetupInstallerUtilStrings() { 527 void ChromeBrowserMainPartsWin::SetupInstallerUtilStrings() {
518 CR_DEFINE_STATIC_LOCAL(TranslationDelegate, delegate, ()); 528 CR_DEFINE_STATIC_LOCAL(TranslationDelegate, delegate, ());
519 installer::SetTranslationDelegate(&delegate); 529 installer::SetTranslationDelegate(&delegate);
520 } 530 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698