Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3517)

Unified Diff: chrome/browser/google_apis/gdata_util.cc

Issue 10920091: Move Drive API files to google_apis directory (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rename google_api directory to google_apis Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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() {

Powered by Google App Engine
This is Rietveld 408576698