| Index: chrome/browser/chromeos/gdata/gdata_util.cc
|
| diff --git a/chrome/browser/chromeos/gdata/gdata_util.cc b/chrome/browser/chromeos/gdata/gdata_util.cc
|
| index a8958451c1f5ea1bcdccca0b8c37920961622f06..be8bd52bbb601fb739db554e5daf9f3566cd0f79 100644
|
| --- a/chrome/browser/chromeos/gdata/gdata_util.cc
|
| +++ b/chrome/browser/chromeos/gdata/gdata_util.cc
|
| @@ -24,6 +24,8 @@
|
| #include "chrome/common/url_constants.h"
|
| #include "chrome/browser/chromeos/gdata/gdata_file_system.h"
|
| #include "chrome/browser/chromeos/gdata/gdata_system_service.h"
|
| +#include "chrome/browser/chromeos/login/user.h"
|
| +#include "chrome/browser/chromeos/login/user_manager.h"
|
| #include "chrome/browser/prefs/pref_service.h"
|
| #include "chrome/browser/profiles/profile.h"
|
| #include "chrome/browser/ui/browser.h"
|
| @@ -247,6 +249,11 @@ void SetPermissionsForGDataCacheFiles(Profile* profile,
|
| }
|
|
|
| bool IsGDataAvailable(Profile* profile) {
|
| + if (!chromeos::UserManager::Get()->IsUserLoggedIn() ||
|
| + chromeos::UserManager::Get()->IsLoggedInAsGuest() ||
|
| + chromeos::UserManager::Get()->IsLoggedInAsDemoUser())
|
| + return false;
|
| +
|
| // Do not allow GData for incognito windows / guest mode.
|
| if (profile->IsOffTheRecord())
|
| return false;
|
|
|