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

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

Issue 10453101: Convert most of the rest of chrome to ImageSkia (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 6 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 | Annotate | Revision Log
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.h" 5 #include "chrome/browser/chrome_browser_main.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 374 matching lines...) Expand 10 before | Expand all | Expand 10 after
385 NOTIMPLEMENTED(); 385 NOTIMPLEMENTED();
386 #else 386 #else
387 // Ideally, we should be able to run w/o access to disk. For now, we 387 // Ideally, we should be able to run w/o access to disk. For now, we
388 // prompt the user to pick a different user-data-dir and restart chrome 388 // prompt the user to pick a different user-data-dir and restart chrome
389 // with the new dir. 389 // with the new dir.
390 // http://code.google.com/p/chromium/issues/detail?id=11510 390 // http://code.google.com/p/chromium/issues/detail?id=11510
391 FilePath new_user_data_dir = browser::ShowUserDataDirDialog(user_data_dir); 391 FilePath new_user_data_dir = browser::ShowUserDataDirDialog(user_data_dir);
392 if (!parameters.ui_task && browser_shutdown::delete_resources_on_shutdown) { 392 if (!parameters.ui_task && browser_shutdown::delete_resources_on_shutdown) {
393 // Only delete the resources if we're not running tests. If we're running 393 // Only delete the resources if we're not running tests. If we're running
394 // tests the resources need to be reused as many places in the UI cache 394 // tests the resources need to be reused as many places in the UI cache
395 // SkBitmaps from the ResourceBundle. 395 // ImageSkias from the ResourceBundle.
396 ResourceBundle::CleanupSharedInstance(); 396 ResourceBundle::CleanupSharedInstance();
397 } 397 }
398 398
399 if (!new_user_data_dir.empty()) { 399 if (!new_user_data_dir.empty()) {
400 // Because of the way CommandLine parses, it's sufficient to append a new 400 // Because of the way CommandLine parses, it's sufficient to append a new
401 // --user-data-dir switch. The last flag of the same name wins. 401 // --user-data-dir switch. The last flag of the same name wins.
402 // TODO(tc): It would be nice to remove the flag we don't want, but that 402 // TODO(tc): It would be nice to remove the flag we don't want, but that
403 // sounds risky if we parse differently than CommandLineToArgvW. 403 // sounds risky if we parse differently than CommandLineToArgvW.
404 CommandLine new_command_line = parameters.command_line; 404 CommandLine new_command_line = parameters.command_line;
405 new_command_line.AppendSwitchPath(switches::kUserDataDir, 405 new_command_line.AppendSwitchPath(switches::kUserDataDir,
(...skipping 1599 matching lines...) Expand 10 before | Expand all | Expand 10 after
2005 if (base::win::GetVersion() <= base::win::VERSION_XP) 2005 if (base::win::GetVersion() <= base::win::VERSION_XP)
2006 uma_name += "_XP"; 2006 uma_name += "_XP";
2007 2007
2008 uma_name += "_PreRead_"; 2008 uma_name += "_PreRead_";
2009 uma_name += pre_read_percentage; 2009 uma_name += pre_read_percentage;
2010 AddPreReadHistogramTime(uma_name.c_str(), time); 2010 AddPreReadHistogramTime(uma_name.c_str(), time);
2011 } 2011 }
2012 #endif 2012 #endif
2013 #endif 2013 #endif
2014 } 2014 }
OLDNEW
« no previous file with comments | « chrome/browser/background/background_mode_manager_win.cc ('k') | chrome/browser/chromeos/login/user_manager_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698