| 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 "app/theme_provider.h" | 7 #include "app/theme_provider.h" |
| 8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
| 9 #include "base/file_path.h" | 9 #include "base/file_path.h" |
| 10 #include "base/file_util.h" | 10 #include "base/file_util.h" |
| (...skipping 793 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 804 | 804 |
| 805 // FaviconService depends on HistoryServce so make sure we delete | 805 // FaviconService depends on HistoryServce so make sure we delete |
| 806 // HistoryService first. | 806 // HistoryService first. |
| 807 favicon_service_ = NULL; | 807 favicon_service_ = NULL; |
| 808 | 808 |
| 809 extension_message_service_->ProfileDestroyed(); | 809 extension_message_service_->ProfileDestroyed(); |
| 810 | 810 |
| 811 if (extensions_service_) | 811 if (extensions_service_) |
| 812 extensions_service_->ProfileDestroyed(); | 812 extensions_service_->ProfileDestroyed(); |
| 813 | 813 |
| 814 // This causes the Preferences file to be written to disk. |
| 814 MarkAsCleanShutdown(); | 815 MarkAsCleanShutdown(); |
| 815 } | 816 } |
| 816 | 817 |
| 817 ProfileId ProfileImpl::GetRuntimeId() { | 818 ProfileId ProfileImpl::GetRuntimeId() { |
| 818 return reinterpret_cast<ProfileId>(this); | 819 return reinterpret_cast<ProfileId>(this); |
| 819 } | 820 } |
| 820 | 821 |
| 821 FilePath ProfileImpl::GetPath() { | 822 FilePath ProfileImpl::GetPath() { |
| 822 return path_; | 823 return path_; |
| 823 } | 824 } |
| (...skipping 583 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1407 #endif | 1408 #endif |
| 1408 return NULL; | 1409 return NULL; |
| 1409 } | 1410 } |
| 1410 | 1411 |
| 1411 void ProfileImpl::InitSyncService() { | 1412 void ProfileImpl::InitSyncService() { |
| 1412 #if defined(BROWSER_SYNC) | 1413 #if defined(BROWSER_SYNC) |
| 1413 sync_service_.reset(new ProfileSyncService(this)); | 1414 sync_service_.reset(new ProfileSyncService(this)); |
| 1414 sync_service_->Initialize(); | 1415 sync_service_->Initialize(); |
| 1415 #endif | 1416 #endif |
| 1416 } | 1417 } |
| OLD | NEW |