Index: chrome/browser/chromeos/extensions/file_manager/private_api_misc.cc |
diff --git a/chrome/browser/chromeos/extensions/file_manager/private_api_misc.cc b/chrome/browser/chromeos/extensions/file_manager/private_api_misc.cc |
index 9bf3259f975dce0b7ead08b7ad51f078e381c6a5..80198faf5584456b07f0695d299896f6c7225f03 100644 |
--- a/chrome/browser/chromeos/extensions/file_manager/private_api_misc.cc |
+++ b/chrome/browser/chromeos/extensions/file_manager/private_api_misc.cc |
@@ -90,6 +90,9 @@ GetLoggedInProfileInfoList(content::WebContents* contents) { |
profile_info->is_current_profile = true; |
// Make an icon URL of the profile. |
+#if !defined(USE_ATHENA) |
+ // TODO(oshima): Move GetAvatarImageForContext out from ash. |
+ // crbug.com/408748. |
if (contents) { |
const gfx::Image& image = |
ash::GetAvatarImageForContext(contents->GetBrowserContext()); |
@@ -101,6 +104,7 @@ GetLoggedInProfileInfoList(content::WebContents* contents) { |
profile_info->profile_image->scale2x_url = |
webui::GetBitmapDataUrl(skia.GetRepresentation(2.0f).sk_bitmap()); |
} |
+#endif |
result_profiles.push_back(profile_info); |
} |
@@ -379,6 +383,11 @@ void FileBrowserPrivateRequestWebStoreAccessTokenFunction::OnAccessTokenFetched( |
} |
bool FileBrowserPrivateGetProfilesFunction::RunSync() { |
+#if defined(USE_ATHENA) |
+ // TODO(oshima): Figure out what to do. |
+ return false; |
+#endif |
+ |
const std::vector<linked_ptr<api::file_browser_private::ProfileInfo> >& |
profiles = GetLoggedInProfileInfoList(GetAssociatedWebContents()); |