| 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 1480 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1491 } | 1491 } |
| 1492 return blob_storage_context_; | 1492 return blob_storage_context_; |
| 1493 } | 1493 } |
| 1494 | 1494 |
| 1495 ExtensionInfoMap* ProfileImpl::GetExtensionInfoMap() { | 1495 ExtensionInfoMap* ProfileImpl::GetExtensionInfoMap() { |
| 1496 return extension_info_map_.get(); | 1496 return extension_info_map_.get(); |
| 1497 } | 1497 } |
| 1498 | 1498 |
| 1499 ChromeURLDataManager* ProfileImpl::GetChromeURLDataManager() { | 1499 ChromeURLDataManager* ProfileImpl::GetChromeURLDataManager() { |
| 1500 if (!chrome_url_data_manager_.get()) | 1500 if (!chrome_url_data_manager_.get()) |
| 1501 chrome_url_data_manager_.reset(new ChromeURLDataManager(this)); | 1501 chrome_url_data_manager_.reset(new ChromeURLDataManager( |
| 1502 io_data_.GetChromeURLDataManagerBackendGetter())); |
| 1502 return chrome_url_data_manager_.get(); | 1503 return chrome_url_data_manager_.get(); |
| 1503 } | 1504 } |
| 1504 | 1505 |
| 1505 PromoCounter* ProfileImpl::GetInstantPromoCounter() { | 1506 PromoCounter* ProfileImpl::GetInstantPromoCounter() { |
| 1506 #if defined(OS_WIN) | 1507 #if defined(OS_WIN) |
| 1507 // TODO: enable this when we're ready to turn on the promo. | 1508 // TODO: enable this when we're ready to turn on the promo. |
| 1508 /* | 1509 /* |
| 1509 if (!checked_instant_promo_) { | 1510 if (!checked_instant_promo_) { |
| 1510 checked_instant_promo_ = true; | 1511 checked_instant_promo_ = true; |
| 1511 PrefService* prefs = GetPrefs(); | 1512 PrefService* prefs = GetPrefs(); |
| (...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1632 if (!prerender::PrerenderManager::IsPrerenderingPossible()) | 1633 if (!prerender::PrerenderManager::IsPrerenderingPossible()) |
| 1633 return NULL; | 1634 return NULL; |
| 1634 if (!prerender_manager_.get()) { | 1635 if (!prerender_manager_.get()) { |
| 1635 CHECK(g_browser_process->prerender_tracker()); | 1636 CHECK(g_browser_process->prerender_tracker()); |
| 1636 prerender_manager_.reset( | 1637 prerender_manager_.reset( |
| 1637 new prerender::PrerenderManager( | 1638 new prerender::PrerenderManager( |
| 1638 this, g_browser_process->prerender_tracker())); | 1639 this, g_browser_process->prerender_tracker())); |
| 1639 } | 1640 } |
| 1640 return prerender_manager_.get(); | 1641 return prerender_manager_.get(); |
| 1641 } | 1642 } |
| OLD | NEW |