Chromium Code Reviews| Index: chrome/browser/profiles/profile_impl.cc |
| =================================================================== |
| --- chrome/browser/profiles/profile_impl.cc (revision 73990) |
| +++ chrome/browser/profiles/profile_impl.cc (working copy) |
| @@ -26,6 +26,7 @@ |
| #include "chrome/browser/chrome_blob_storage_context.h" |
| #include "chrome/browser/content_settings/host_content_settings_map.h" |
| #include "chrome/browser/defaults.h" |
| +#include "chrome/browser/dom_ui/chrome_url_data_manager.h" |
| #include "chrome/browser/dom_ui/ntp_resource_cache.h" |
| #include "chrome/browser/download/download_manager.h" |
| #include "chrome/browser/extensions/default_apps.h" |
| @@ -1372,6 +1373,12 @@ |
| return profile_policy_context_.get(); |
| } |
| +ChromeURLDataManager* ProfileImpl::GetChromeURLDataManager() { |
|
willchan no longer on Chromium
2011/02/08 04:57:52
If we don't need to lazily instantiate this, then
|
| + if (!chrome_url_data_manager_.get()) |
| + chrome_url_data_manager_.reset(new ChromeURLDataManager(this)); |
| + return chrome_url_data_manager_.get(); |
| +} |
| + |
| PromoCounter* ProfileImpl::GetInstantPromoCounter() { |
| #if defined(OS_WIN) |
| // TODO: enable this when we're ready to turn on the promo. |