summaryrefslogtreecommitdiffstats
path: root/chrome/browser/tabs
diff options
context:
space:
mode:
authortorne@chromium.org <torne@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-04-20 12:24:27 +0000
committertorne@chromium.org <torne@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-04-20 12:24:27 +0000
commitbc36f2a13642d84acc1a71405f9a5fbb75c74cd5 (patch)
tree8d23d62d17cdc9bf9bcfe4296ad61676d0db8221 /chrome/browser/tabs
parentc2f82a2d33e6b08ca82e3f474cd020dc87bd76f6 (diff)
downloadchromium_src-bc36f2a13642d84acc1a71405f9a5fbb75c74cd5.zip
chromium_src-bc36f2a13642d84acc1a71405f9a5fbb75c74cd5.tar.gz
chromium_src-bc36f2a13642d84acc1a71405f9a5fbb75c74cd5.tar.bz2
Add optional creation to ProfileKeyedServiceFactory.
Add an extra parameter to ProfileKeyedServiceFactory::GetServiceForProfile so that individual service factories can choose whether the service should be created if it doesn't exist. BUG=77155 TEST=existing tests Review URL: http://codereview.chromium.org/6879031 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@82282 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/tabs')
-rw-r--r--chrome/browser/tabs/pinned_tab_service_factory.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/chrome/browser/tabs/pinned_tab_service_factory.cc b/chrome/browser/tabs/pinned_tab_service_factory.cc
index 13789c6..5ef50a9 100644
--- a/chrome/browser/tabs/pinned_tab_service_factory.cc
+++ b/chrome/browser/tabs/pinned_tab_service_factory.cc
@@ -12,7 +12,7 @@
PinnedTabService* PinnedTabServiceFactory::GetForProfile(
Profile* profile) {
return static_cast<PinnedTabService*>(
- GetInstance()->GetServiceForProfile(profile));
+ GetInstance()->GetServiceForProfile(profile, true));
}
PinnedTabServiceFactory* PinnedTabServiceFactory::GetInstance() {