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/profiles/profile_manager.h" |
8 | 8 |
9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
10 #include "base/file_util.h" | 10 #include "base/file_util.h" |
11 #include "base/path_service.h" | 11 #include "base/path_service.h" |
12 #include "base/string_util.h" | 12 #include "base/string_util.h" |
13 #include "chrome/browser/browser_process.h" | 13 #include "chrome/browser/browser_process.h" |
14 #include "chrome/browser/browser_thread.h" | 14 #include "chrome/browser/browser_thread.h" |
15 #include "chrome/browser/prefs/pref_service.h" | 15 #include "chrome/browser/prefs/pref_service.h" |
16 #include "chrome/browser/ui/browser.h" | 16 #include "chrome/browser/ui/browser.h" |
17 #include "chrome/browser/ui/browser_list.h" | 17 #include "chrome/browser/ui/browser_list.h" |
(...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
275 if (!file_util::PathExists(path)) { | 275 if (!file_util::PathExists(path)) { |
276 // TODO(tc): http://b/1094718 Bad things happen if we can't write to the | 276 // TODO(tc): http://b/1094718 Bad things happen if we can't write to the |
277 // profile directory. We should eventually be able to run in this | 277 // profile directory. We should eventually be able to run in this |
278 // situation. | 278 // situation. |
279 if (!file_util::CreateDirectory(path)) | 279 if (!file_util::CreateDirectory(path)) |
280 return NULL; | 280 return NULL; |
281 } | 281 } |
282 | 282 |
283 return Profile::CreateProfile(path); | 283 return Profile::CreateProfile(path); |
284 } | 284 } |
OLD | NEW |