diff options
author | skrul@chromium.org <skrul@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-01 23:51:46 +0000 |
---|---|---|
committer | skrul@chromium.org <skrul@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-01 23:51:46 +0000 |
commit | f717ce590f859059c4b1d7d8817238d2c839fbe0 (patch) | |
tree | e73b841710c58e0eecbbef7a532a70b63f60d44c /chrome/browser/sync | |
parent | 700bed8aaa6fe76fd3cd11e23b70333de9f19ae5 (diff) | |
download | chromium_src-f717ce590f859059c4b1d7d8817238d2c839fbe0.zip chromium_src-f717ce590f859059c4b1d7d8817238d2c839fbe0.tar.gz chromium_src-f717ce590f859059c4b1d7d8817238d2c839fbe0.tar.bz2 |
Fix crash in ProfileSyncService on ChromiumOS.
Review URL: http://codereview.chromium.org/661306
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@40323 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/sync')
-rw-r--r-- | chrome/browser/sync/profile_sync_service.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/chrome/browser/sync/profile_sync_service.cc b/chrome/browser/sync/profile_sync_service.cc index a9a9972..34dcbfe 100644 --- a/chrome/browser/sync/profile_sync_service.cc +++ b/chrome/browser/sync/profile_sync_service.cc @@ -136,7 +136,7 @@ const char kLsidCookieDomain[] = "www.google.com"; const char kLsidCookieName[] = "LSID"; std::string ProfileSyncService::GetLsidForAuthBootstraping() { - if (bootstrap_sync_authentication_) { + if (bootstrap_sync_authentication_ && profile()->GetRequestContext()) { // If we're running inside Chromium OS, bootstrap the sync authentication by // using the LSID cookie provided by the Chromium OS login manager. net::CookieMonster::CookieList cookies = profile()->GetRequestContext()-> |