OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/resource_bundle.h" | 7 #include "app/resource_bundle.h" |
8 #include "app/theme_provider.h" | 8 #include "app/theme_provider.h" |
9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
10 #include "base/env_var.h" | 10 #include "base/env_var.h" |
(...skipping 1385 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1396 thumbnail_store_ = new ThumbnailStore; | 1396 thumbnail_store_ = new ThumbnailStore; |
1397 thumbnail_store_->Init( | 1397 thumbnail_store_->Init( |
1398 GetPath().Append(chrome::kNewTabThumbnailsFilename), this); | 1398 GetPath().Append(chrome::kNewTabThumbnailsFilename), this); |
1399 } | 1399 } |
1400 return thumbnail_store_.get(); | 1400 return thumbnail_store_.get(); |
1401 } | 1401 } |
1402 | 1402 |
1403 history::TopSites* ProfileImpl::GetTopSites() { | 1403 history::TopSites* ProfileImpl::GetTopSites() { |
1404 if (!top_sites_.get()) { | 1404 if (!top_sites_.get()) { |
1405 top_sites_ = new history::TopSites(this); | 1405 top_sites_ = new history::TopSites(this); |
1406 top_sites_->Init(); | 1406 top_sites_->Init(GetPath().Append(chrome::kTopSitesFilename)); |
1407 } | 1407 } |
1408 return top_sites_; | 1408 return top_sites_; |
1409 } | 1409 } |
1410 | 1410 |
1411 void ProfileImpl::ResetTabRestoreService() { | 1411 void ProfileImpl::ResetTabRestoreService() { |
1412 tab_restore_service_ = NULL; | 1412 tab_restore_service_ = NULL; |
1413 } | 1413 } |
1414 | 1414 |
1415 SpellCheckHost* ProfileImpl::GetSpellCheckHost() { | 1415 SpellCheckHost* ProfileImpl::GetSpellCheckHost() { |
1416 return spellcheck_host_ready_ ? spellcheck_host_.get() : NULL; | 1416 return spellcheck_host_ready_ ? spellcheck_host_.get() : NULL; |
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1533 CommandLine::ForCurrentProcess())); | 1533 CommandLine::ForCurrentProcess())); |
1534 sync_service_.reset( | 1534 sync_service_.reset( |
1535 profile_sync_factory_->CreateProfileSyncService()); | 1535 profile_sync_factory_->CreateProfileSyncService()); |
1536 sync_service_->Initialize(); | 1536 sync_service_->Initialize(); |
1537 } | 1537 } |
1538 | 1538 |
1539 void ProfileImpl::InitCloudPrintProxyService() { | 1539 void ProfileImpl::InitCloudPrintProxyService() { |
1540 cloud_print_proxy_service_.reset(new CloudPrintProxyService(this)); | 1540 cloud_print_proxy_service_.reset(new CloudPrintProxyService(this)); |
1541 cloud_print_proxy_service_->Initialize(); | 1541 cloud_print_proxy_service_->Initialize(); |
1542 } | 1542 } |
OLD | NEW |