Chromium Code Reviews| Index: chrome/browser/google_apis/gdata_util.cc |
| diff --git a/chrome/browser/chromeos/gdata/gdata_util.cc b/chrome/browser/google_apis/gdata_util.cc |
| similarity index 98% |
| rename from chrome/browser/chromeos/gdata/gdata_util.cc |
| rename to chrome/browser/google_apis/gdata_util.cc |
| index e63510ffad2b2abdb2358af2f4d1f69c7d64774d..9861c4e98d04d412cf01fcbdc13004ef02dfb7c8 100644 |
| --- a/chrome/browser/chromeos/gdata/gdata_util.cc |
| +++ b/chrome/browser/google_apis/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_apis/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; |
|
kochi
2012/09/07 06:56:21
Can you add a TODO() here for what's necessary for
nhiroki
2012/09/07 09:06:26
Done.
|
| +#endif |
| } |
| bool IsDriveV2ApiEnabled() { |