OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chrome/browser/chromeos/extensions/file_manager/private_api_misc.h" | 5 #include "chrome/browser/chromeos/extensions/file_manager/private_api_misc.h" |
6 | 6 |
7 #include "ash/frame/frame_util.h" | 7 #include "ash/frame/frame_util.h" |
8 #include "base/files/file_path.h" | 8 #include "base/files/file_path.h" |
9 #include "base/prefs/pref_service.h" | 9 #include "base/prefs/pref_service.h" |
10 #include "base/strings/stringprintf.h" | 10 #include "base/strings/stringprintf.h" |
(...skipping 348 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
359 logger->Log(logging::LOG_ERROR, | 359 logger->Log(logging::LOG_ERROR, |
360 "CWS OAuth token fetch failed. (GDataErrorCode: %s)", | 360 "CWS OAuth token fetch failed. (GDataErrorCode: %s)", |
361 google_apis::GDataErrorCodeToString(code).c_str()); | 361 google_apis::GDataErrorCodeToString(code).c_str()); |
362 } | 362 } |
363 SetResult(base::Value::CreateNullValue()); | 363 SetResult(base::Value::CreateNullValue()); |
364 SendResponse(false); | 364 SendResponse(false); |
365 } | 365 } |
366 } | 366 } |
367 | 367 |
368 bool FileBrowserPrivateGetProfilesFunction::RunSync() { | 368 bool FileBrowserPrivateGetProfilesFunction::RunSync() { |
| 369 #if defined(USE_ATHENA) |
| 370 // TODO(oshima): Figure out what to do. |
| 371 return false; |
| 372 #endif |
| 373 |
369 const std::vector<linked_ptr<api::file_browser_private::ProfileInfo> >& | 374 const std::vector<linked_ptr<api::file_browser_private::ProfileInfo> >& |
370 profiles = GetLoggedInProfileInfoList(); | 375 profiles = GetLoggedInProfileInfoList(); |
371 | 376 |
372 // Obtains the display profile ID. | 377 // Obtains the display profile ID. |
373 AppWindow* const app_window = GetCurrentAppWindow(this); | 378 AppWindow* const app_window = GetCurrentAppWindow(this); |
374 chrome::MultiUserWindowManager* const window_manager = | 379 chrome::MultiUserWindowManager* const window_manager = |
375 chrome::MultiUserWindowManager::GetInstance(); | 380 chrome::MultiUserWindowManager::GetInstance(); |
376 const std::string current_profile_id = | 381 const std::string current_profile_id = |
377 multi_user_util::GetUserIDFromProfile(GetProfile()); | 382 multi_user_util::GetUserIDFromProfile(GetProfile()); |
378 const std::string display_profile_id = | 383 const std::string display_profile_id = |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
463 NOTREACHED(); | 468 NOTREACHED(); |
464 SetError( | 469 SetError( |
465 base::StringPrintf("Unexpected inspection type(%d) is specified.", | 470 base::StringPrintf("Unexpected inspection type(%d) is specified.", |
466 static_cast<int>(params->type))); | 471 static_cast<int>(params->type))); |
467 return false; | 472 return false; |
468 } | 473 } |
469 return true; | 474 return true; |
470 } | 475 } |
471 | 476 |
472 } // namespace extensions | 477 } // namespace extensions |
OLD | NEW |