OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 "base/file_util.h" | 9 #include "base/file_util.h" |
10 #include "base/path_service.h" | 10 #include "base/path_service.h" |
11 #include "base/string_util.h" | 11 #include "base/string_util.h" |
12 #include "chrome/browser/browser.h" | 12 #include "chrome/browser/browser.h" |
13 #include "chrome/browser/browser_list.h" | 13 #include "chrome/browser/browser_list.h" |
14 #include "chrome/browser/browser_process.h" | 14 #include "chrome/browser/browser_process.h" |
15 #include "chrome/browser/chrome_thread.h" | 15 #include "chrome/browser/chrome_thread.h" |
16 #include "chrome/common/chrome_constants.h" | 16 #include "chrome/common/chrome_constants.h" |
17 #include "chrome/common/chrome_paths.h" | 17 #include "chrome/common/chrome_paths.h" |
18 #include "chrome/common/l10n_util.h" | 18 #include "chrome/common/l10n_util.h" |
19 #include "chrome/common/logging_chrome.h" | 19 #include "chrome/common/logging_chrome.h" |
20 #include "chrome/common/pref_names.h" | 20 #include "chrome/common/pref_names.h" |
21 #include "chrome/common/pref_service.h" | 21 #include "chrome/common/pref_service.h" |
| 22 #include "net/http/http_transaction_factory.h" |
22 #include "net/url_request/url_request_context.h" | 23 #include "net/url_request/url_request_context.h" |
23 #include "net/url_request/url_request_job.h" | 24 #include "net/url_request/url_request_job.h" |
24 #include "net/url_request/url_request_job_tracker.h" | 25 #include "net/url_request/url_request_job_tracker.h" |
25 | 26 |
26 #include "generated_resources.h" | 27 #include "generated_resources.h" |
27 | 28 |
28 #if defined(OS_POSIX) | 29 #if defined(OS_POSIX) |
29 // TODO(port): get rid of this include. It's used just to provide declarations | 30 // TODO(port): get rid of this include. It's used just to provide declarations |
30 // and stub definitions for classes we encouter during the porting effort. | 31 // and stub definitions for classes we encouter during the porting effort. |
31 #include "chrome/common/temp_scaffolding_stubs.h" | 32 #include "chrome/common/temp_scaffolding_stubs.h" |
(...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
331 return profile; | 332 return profile; |
332 } | 333 } |
333 | 334 |
334 // static | 335 // static |
335 std::wstring ProfileManager::CanonicalizeID(const std::wstring& id) { | 336 std::wstring ProfileManager::CanonicalizeID(const std::wstring& id) { |
336 std::wstring no_whitespace; | 337 std::wstring no_whitespace; |
337 TrimWhitespace(id, TRIM_ALL, &no_whitespace); | 338 TrimWhitespace(id, TRIM_ALL, &no_whitespace); |
338 return StringToLowerASCII(no_whitespace); | 339 return StringToLowerASCII(no_whitespace); |
339 } | 340 } |
340 | 341 |
OLD | NEW |