| Index: chrome/browser/google_api/gdata_util.cc
|
| diff --git a/chrome/browser/chromeos/gdata/gdata_util.cc b/chrome/browser/google_api/gdata_util.cc
|
| similarity index 98%
|
| rename from chrome/browser/chromeos/gdata/gdata_util.cc
|
| rename to chrome/browser/google_api/gdata_util.cc
|
| index e63510ffad2b2abdb2358af2f4d1f69c7d64774d..9a90b55fc9b7cad604a6e7db6fbcd8bd0c47625c 100644
|
| --- a/chrome/browser/chromeos/gdata/gdata_util.cc
|
| +++ b/chrome/browser/google_api/gdata_util.cc
|
| @@ -2,7 +2,7 @@
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| -#include "chrome/browser/chromeos/gdata/gdata_util.h"
|
| +#include "chrome/browser/google_api/gdata_util.h"
|
|
|
| #include <string>
|
| #include <vector>
|
| @@ -65,6 +65,7 @@ bool ParseTimezone(const base::StringPiece& timezone,
|
| } // namespace
|
|
|
| bool IsGDataAvailable(Profile* profile) {
|
| +#if defined(OS_CHROMEOS)
|
| if (!chromeos::UserManager::Get()->IsUserLoggedIn() ||
|
| chromeos::UserManager::Get()->IsLoggedInAsGuest() ||
|
| chromeos::UserManager::Get()->IsLoggedInAsDemoUser())
|
| @@ -81,6 +82,9 @@ bool IsGDataAvailable(Profile* profile) {
|
| return false;
|
|
|
| return true;
|
| +#else
|
| + return false;
|
| +#endif
|
| }
|
|
|
| bool IsDriveV2ApiEnabled() {
|
|
|