| Index: chrome/browser/chrome_browser_main_win.cc
|
| ===================================================================
|
| --- chrome/browser/chrome_browser_main_win.cc (revision 212185)
|
| +++ chrome/browser/chrome_browser_main_win.cc (working copy)
|
| @@ -212,7 +212,7 @@
|
| void ChromeBrowserMainPartsWin::PostMainMessageLoopRun() {
|
| // Log the search engine chosen on first run. Do this at shutdown, after any
|
| // changes are made from the first run bubble link, etc.
|
| - if (do_first_run_tasks() && !profile()->IsOffTheRecord()) {
|
| + if (do_first_run_tasks() && profile() && !profile()->IsOffTheRecord()) {
|
| TemplateURLService* url_service =
|
| TemplateURLServiceFactory::GetForProfile(profile());
|
| const TemplateURL* default_search_engine =
|
|
|