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