| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 <set> | 5 #include <set> |
| 6 | 6 |
| 7 #include "chrome/browser/profile_manager.h" | 7 #include "chrome/browser/profile_manager.h" |
| 8 | 8 |
| 9 #include "app/l10n_util.h" | |
| 10 #include "base/command_line.h" | 9 #include "base/command_line.h" |
| 11 #include "base/file_util.h" | 10 #include "base/file_util.h" |
| 12 #include "base/path_service.h" | 11 #include "base/path_service.h" |
| 13 #include "base/string_util.h" | 12 #include "base/string_util.h" |
| 14 #include "chrome/browser/browser.h" | 13 #include "chrome/browser/browser.h" |
| 15 #include "chrome/browser/browser_list.h" | 14 #include "chrome/browser/browser_list.h" |
| 16 #include "chrome/browser/browser_process.h" | 15 #include "chrome/browser/browser_process.h" |
| 17 #include "chrome/browser/browser_window.h" | 16 #include "chrome/browser/browser_window.h" |
| 18 #include "chrome/browser/chrome_thread.h" | 17 #include "chrome/browser/chrome_thread.h" |
| 19 #include "chrome/browser/pref_service.h" | 18 #include "chrome/browser/pref_service.h" |
| (...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 286 if (!file_util::PathExists(path)) { | 285 if (!file_util::PathExists(path)) { |
| 287 // TODO(tc): http://b/1094718 Bad things happen if we can't write to the | 286 // TODO(tc): http://b/1094718 Bad things happen if we can't write to the |
| 288 // profile directory. We should eventually be able to run in this | 287 // profile directory. We should eventually be able to run in this |
| 289 // situation. | 288 // situation. |
| 290 if (!file_util::CreateDirectory(path)) | 289 if (!file_util::CreateDirectory(path)) |
| 291 return NULL; | 290 return NULL; |
| 292 } | 291 } |
| 293 | 292 |
| 294 return Profile::CreateProfile(path); | 293 return Profile::CreateProfile(path); |
| 295 } | 294 } |
| OLD | NEW |