| 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/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
| 9 #include "base/environment.h" | 9 #include "base/environment.h" |
| 10 #include "base/file_path.h" | 10 #include "base/file_path.h" |
| (...skipping 663 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 674 host_content_settings_map_->ShutdownOnUIThread(); | 674 host_content_settings_map_->ShutdownOnUIThread(); |
| 675 | 675 |
| 676 // This causes the Preferences file to be written to disk. | 676 // This causes the Preferences file to be written to disk. |
| 677 MarkAsCleanShutdown(); | 677 MarkAsCleanShutdown(); |
| 678 } | 678 } |
| 679 | 679 |
| 680 std::string ProfileImpl::GetProfileName() { | 680 std::string ProfileImpl::GetProfileName() { |
| 681 return GetPrefs()->GetString(prefs::kGoogleServicesUsername); | 681 return GetPrefs()->GetString(prefs::kGoogleServicesUsername); |
| 682 } | 682 } |
| 683 | 683 |
| 684 ProfileId ProfileImpl::GetRuntimeId() { | |
| 685 return reinterpret_cast<ProfileId>(this); | |
| 686 } | |
| 687 | |
| 688 FilePath ProfileImpl::GetPath() { | 684 FilePath ProfileImpl::GetPath() { |
| 689 return path_; | 685 return path_; |
| 690 } | 686 } |
| 691 | 687 |
| 692 bool ProfileImpl::IsOffTheRecord() { | 688 bool ProfileImpl::IsOffTheRecord() { |
| 693 return false; | 689 return false; |
| 694 } | 690 } |
| 695 | 691 |
| 696 Profile* ProfileImpl::GetOffTheRecordProfile() { | 692 Profile* ProfileImpl::GetOffTheRecordProfile() { |
| 697 if (!off_the_record_profile_.get()) { | 693 if (!off_the_record_profile_.get()) { |
| (...skipping 952 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1650 if (!prerender::PrerenderManager::IsPrerenderingPossible()) | 1646 if (!prerender::PrerenderManager::IsPrerenderingPossible()) |
| 1651 return NULL; | 1647 return NULL; |
| 1652 if (!prerender_manager_.get()) { | 1648 if (!prerender_manager_.get()) { |
| 1653 CHECK(g_browser_process->prerender_tracker()); | 1649 CHECK(g_browser_process->prerender_tracker()); |
| 1654 prerender_manager_.reset( | 1650 prerender_manager_.reset( |
| 1655 new prerender::PrerenderManager( | 1651 new prerender::PrerenderManager( |
| 1656 this, g_browser_process->prerender_tracker())); | 1652 this, g_browser_process->prerender_tracker())); |
| 1657 } | 1653 } |
| 1658 return prerender_manager_.get(); | 1654 return prerender_manager_.get(); |
| 1659 } | 1655 } |
| OLD | NEW |