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

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

Issue 2133083002: Remove all remaining traces of MessageLoopProxy. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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 | « chrome/browser/chrome_browser_main.cc ('k') | chrome/browser/chrome_device_client.cc » ('j') | 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 <shellapi.h> 7 #include <shellapi.h>
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <windows.h> 9 #include <windows.h>
10 10
(...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after
311 } 311 }
312 312
313 void ChromeBrowserMainPartsWin::PostProfileInit() { 313 void ChromeBrowserMainPartsWin::PostProfileInit() {
314 ChromeBrowserMainParts::PostProfileInit(); 314 ChromeBrowserMainParts::PostProfileInit();
315 315
316 // TODO(kulshin): remove this cleanup code in 2017. http://crbug.com/603718 316 // TODO(kulshin): remove this cleanup code in 2017. http://crbug.com/603718
317 // Attempt to delete the font cache and ignore any errors. 317 // Attempt to delete the font cache and ignore any errors.
318 base::FilePath path( 318 base::FilePath path(
319 profile()->GetPath().AppendASCII("ChromeDWriteFontCache")); 319 profile()->GetPath().AppendASCII("ChromeDWriteFontCache"));
320 content::BrowserThread::PostAfterStartupTask( 320 content::BrowserThread::PostAfterStartupTask(
321 FROM_HERE, content::BrowserThread::GetMessageLoopProxyForThread( 321 FROM_HERE, content::BrowserThread::GetTaskRunnerForThread(
322 content::BrowserThread::FILE), 322 content::BrowserThread::FILE),
323 base::Bind(base::IgnoreResult(&base::DeleteFile), path, false)); 323 base::Bind(base::IgnoreResult(&base::DeleteFile), path, false));
324 } 324 }
325 325
326 void ChromeBrowserMainPartsWin::PostBrowserStart() { 326 void ChromeBrowserMainPartsWin::PostBrowserStart() {
327 ChromeBrowserMainParts::PostBrowserStart(); 327 ChromeBrowserMainParts::PostBrowserStart();
328 328
329 UMA_HISTOGRAM_BOOLEAN("Windows.Tablet", base::win::IsTabletDevice(nullptr)); 329 UMA_HISTOGRAM_BOOLEAN("Windows.Tablet", base::win::IsTabletDevice(nullptr));
330 330
331 // Set up a task to verify installed modules in the current process. 331 // Set up a task to verify installed modules in the current process.
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after
520 if (resource_id) 520 if (resource_id)
521 return l10n_util::GetStringUTF16(resource_id); 521 return l10n_util::GetStringUTF16(resource_id);
522 return base::string16(); 522 return base::string16();
523 } 523 }
524 524
525 // static 525 // static
526 void ChromeBrowserMainPartsWin::SetupInstallerUtilStrings() { 526 void ChromeBrowserMainPartsWin::SetupInstallerUtilStrings() {
527 CR_DEFINE_STATIC_LOCAL(TranslationDelegate, delegate, ()); 527 CR_DEFINE_STATIC_LOCAL(TranslationDelegate, delegate, ());
528 installer::SetTranslationDelegate(&delegate); 528 installer::SetTranslationDelegate(&delegate);
529 } 529 }
OLDNEW
« no previous file with comments | « chrome/browser/chrome_browser_main.cc ('k') | chrome/browser/chrome_device_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698