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

Unified Diff: chrome/browser/chromeos/chrome_browser_main_chromeos.cc

Issue 11028064: Resize images for hi-dpi based on a custom PNG chunk added by GRIT r78, and roll GRIT r78 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: comments Created 8 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | third_party/libpng/pngusr.h » ('j') | ui/base/resource/resource_bundle.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/chrome_browser_main_chromeos.cc
diff --git a/chrome/browser/chromeos/chrome_browser_main_chromeos.cc b/chrome/browser/chromeos/chrome_browser_main_chromeos.cc
index 28664f9dcc4454d835eec2cb46cd884ab86eb6ef..b63c56c2293cf662569ff8a8c9351ea72555b338 100644
--- a/chrome/browser/chromeos/chrome_browser_main_chromeos.cc
+++ b/chrome/browser/chromeos/chrome_browser_main_chromeos.cc
@@ -350,6 +350,10 @@ void ChromeBrowserMainPartsChromeos::PreProfileInit() {
// -- This used to be in ChromeBrowserMainParts::PreMainMessageLoopRun()
// -- immediately before Profile creation().
+ // In Aura builds this will initialize ash::Shell. Call it first so that
+ // the device scale factor is available when loading images.
oshima 2012/10/10 16:21:28 // Call it first before performing UI related task
stevenjb 2012/10/10 17:07:27 How this initializes Ash is not entirely obvious,
+ ChromeBrowserMainPartsLinux::PreProfileInit();
+
// Now that the file thread exists we can record our stats.
chromeos::BootTimesLoader::Get()->RecordChromeMainStats();
stevenjb 2012/10/10 17:07:27 This should probably still be first.
@@ -405,9 +409,6 @@ void ChromeBrowserMainPartsChromeos::PreProfileInit() {
}
chromeos::UserManager::Get()->SessionStarted();
}
-
- // In Aura builds this will initialize ash::Shell.
- ChromeBrowserMainPartsLinux::PreProfileInit();
}
void ChromeBrowserMainPartsChromeos::PostProfileInit() {
« no previous file with comments | « no previous file | third_party/libpng/pngusr.h » ('j') | ui/base/resource/resource_bundle.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698