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 "chrome/browser/profile.h" | 5 #include "chrome/browser/profile.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/file_path.h" | 8 #include "base/file_path.h" |
9 #include "base/file_util.h" | 9 #include "base/file_util.h" |
10 #include "base/path_service.h" | 10 #include "base/path_service.h" |
(...skipping 999 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1010 | 1010 |
1011 TabRestoreService* ProfileImpl::GetTabRestoreService() { | 1011 TabRestoreService* ProfileImpl::GetTabRestoreService() { |
1012 if (!tab_restore_service_.get()) | 1012 if (!tab_restore_service_.get()) |
1013 tab_restore_service_ = new TabRestoreService(this); | 1013 tab_restore_service_ = new TabRestoreService(this); |
1014 return tab_restore_service_.get(); | 1014 return tab_restore_service_.get(); |
1015 } | 1015 } |
1016 | 1016 |
1017 ThumbnailStore* ProfileImpl::GetThumbnailStore() { | 1017 ThumbnailStore* ProfileImpl::GetThumbnailStore() { |
1018 if (!thumbnail_store_.get()) { | 1018 if (!thumbnail_store_.get()) { |
1019 thumbnail_store_ = new ThumbnailStore; | 1019 thumbnail_store_ = new ThumbnailStore; |
1020 thumbnail_store_->Init(GetPath().AppendASCII("thumbnailstore"), this); | 1020 thumbnail_store_->Init(GetPath().AppendASCII("Top Thumbnails"), this); |
1021 } | 1021 } |
1022 return thumbnail_store_.get(); | 1022 return thumbnail_store_.get(); |
1023 } | 1023 } |
1024 | 1024 |
1025 void ProfileImpl::ResetTabRestoreService() { | 1025 void ProfileImpl::ResetTabRestoreService() { |
1026 tab_restore_service_ = NULL; | 1026 tab_restore_service_ = NULL; |
1027 } | 1027 } |
1028 | 1028 |
1029 // To be run in the IO thread to notify all resource message filters that the | 1029 // To be run in the IO thread to notify all resource message filters that the |
1030 // spellchecker has changed. | 1030 // spellchecker has changed. |
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1154 | 1154 |
1155 void ProfileImpl::StopCreateSessionServiceTimer() { | 1155 void ProfileImpl::StopCreateSessionServiceTimer() { |
1156 create_session_service_timer_.Stop(); | 1156 create_session_service_timer_.Stop(); |
1157 } | 1157 } |
1158 | 1158 |
1159 #ifdef CHROME_PERSONALIZATION | 1159 #ifdef CHROME_PERSONALIZATION |
1160 ProfilePersonalization* ProfileImpl::GetProfilePersonalization() { | 1160 ProfilePersonalization* ProfileImpl::GetProfilePersonalization() { |
1161 return personalization_.get(); | 1161 return personalization_.get(); |
1162 } | 1162 } |
1163 #endif | 1163 #endif |
OLD | NEW |