| 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 "app/l10n_util.h" |
| 9 #include "base/file_util.h" | 10 #include "base/file_util.h" |
| 10 #include "base/path_service.h" | 11 #include "base/path_service.h" |
| 11 #include "base/string_util.h" | 12 #include "base/string_util.h" |
| 12 #include "chrome/browser/browser.h" | 13 #include "chrome/browser/browser.h" |
| 13 #include "chrome/browser/browser_list.h" | 14 #include "chrome/browser/browser_list.h" |
| 14 #include "chrome/browser/browser_process.h" | 15 #include "chrome/browser/browser_process.h" |
| 15 #include "chrome/browser/chrome_thread.h" | 16 #include "chrome/browser/chrome_thread.h" |
| 16 #include "chrome/common/chrome_constants.h" | 17 #include "chrome/common/chrome_constants.h" |
| 17 #include "chrome/common/chrome_paths.h" | 18 #include "chrome/common/chrome_paths.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 "grit/generated_resources.h" | 22 #include "grit/generated_resources.h" |
| 23 #include "net/http/http_transaction_factory.h" | 23 #include "net/http/http_transaction_factory.h" |
| 24 #include "net/url_request/url_request_context.h" | 24 #include "net/url_request/url_request_context.h" |
| 25 #include "net/url_request/url_request_job.h" | 25 #include "net/url_request/url_request_job.h" |
| 26 #include "net/url_request/url_request_job_tracker.h" | 26 #include "net/url_request/url_request_job_tracker.h" |
| 27 | 27 |
| 28 // static | 28 // static |
| (...skipping 295 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 324 | 324 |
| 325 return profile; | 325 return profile; |
| 326 } | 326 } |
| 327 | 327 |
| 328 // static | 328 // static |
| 329 std::wstring ProfileManager::CanonicalizeID(const std::wstring& id) { | 329 std::wstring ProfileManager::CanonicalizeID(const std::wstring& id) { |
| 330 std::wstring no_whitespace; | 330 std::wstring no_whitespace; |
| 331 TrimWhitespace(id, TRIM_ALL, &no_whitespace); | 331 TrimWhitespace(id, TRIM_ALL, &no_whitespace); |
| 332 return StringToLowerASCII(no_whitespace); | 332 return StringToLowerASCII(no_whitespace); |
| 333 } | 333 } |
| OLD | NEW |