OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "chrome/browser/profiles/profile_impl.h" | 5 #include "chrome/browser/profiles/profile_impl.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
10 #include "base/environment.h" | 10 #include "base/environment.h" |
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
134 #endif | 134 #endif |
135 | 135 |
136 #if defined(OS_CHROMEOS) | 136 #if defined(OS_CHROMEOS) |
137 #include "chrome/browser/chromeos/locale_change_guard.h" | 137 #include "chrome/browser/chromeos/locale_change_guard.h" |
138 #include "chrome/browser/chromeos/login/user_manager.h" | 138 #include "chrome/browser/chromeos/login/user_manager.h" |
139 #include "chrome/browser/chromeos/preferences.h" | 139 #include "chrome/browser/chromeos/preferences.h" |
140 #endif | 140 #endif |
141 | 141 |
142 using base::Time; | 142 using base::Time; |
143 using base::TimeDelta; | 143 using base::TimeDelta; |
| 144 using content::BrowserThread; |
144 | 145 |
145 namespace { | 146 namespace { |
146 | 147 |
147 // Delay, in milliseconds, before we explicitly create the SessionService. | 148 // Delay, in milliseconds, before we explicitly create the SessionService. |
148 static const int kCreateSessionServiceDelayMS = 500; | 149 static const int kCreateSessionServiceDelayMS = 500; |
149 | 150 |
150 #if defined(OS_MACOSX) | 151 #if defined(OS_MACOSX) |
151 // Capacity for mock keychain used for testing. | 152 // Capacity for mock keychain used for testing. |
152 static const int kMockKeychainSize = 1000; | 153 static const int kMockKeychainSize = 1000; |
153 #endif | 154 #endif |
(...skipping 1552 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1706 if (!home_page.is_valid()) | 1707 if (!home_page.is_valid()) |
1707 return GURL(chrome::kChromeUINewTabURL); | 1708 return GURL(chrome::kChromeUINewTabURL); |
1708 return home_page; | 1709 return home_page; |
1709 } | 1710 } |
1710 | 1711 |
1711 SpellCheckProfile* ProfileImpl::GetSpellCheckProfile() { | 1712 SpellCheckProfile* ProfileImpl::GetSpellCheckProfile() { |
1712 if (!spellcheck_profile_.get()) | 1713 if (!spellcheck_profile_.get()) |
1713 spellcheck_profile_.reset(new SpellCheckProfile(path_)); | 1714 spellcheck_profile_.reset(new SpellCheckProfile(path_)); |
1714 return spellcheck_profile_.get(); | 1715 return spellcheck_profile_.get(); |
1715 } | 1716 } |
OLD | NEW |