| 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 442 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 453 | 453 |
| 454 return true; | 454 return true; |
| 455 } | 455 } |
| 456 | 456 |
| 457 void FileManagerPrivateGetMimeTypeFunction::OnGetMimeType( | 457 void FileManagerPrivateGetMimeTypeFunction::OnGetMimeType( |
| 458 const std::string& mimeType) { | 458 const std::string& mimeType) { |
| 459 SetResult(new base::StringValue(mimeType)); | 459 SetResult(new base::StringValue(mimeType)); |
| 460 SendResponse(true); | 460 SendResponse(true); |
| 461 } | 461 } |
| 462 | 462 |
| 463 bool FileManagerPrivateIsPiexLoaderEnabledFunction::RunSync() { |
| 464 #if defined(OFFICIAL_BUILD) |
| 465 SetResult(new base::FundamentalValue(true)); |
| 466 #else |
| 467 SetResult(new base::FundamentalValue(false)); |
| 468 #endif |
| 469 return true; |
| 470 } |
| 471 |
| 463 } // namespace extensions | 472 } // namespace extensions |
| OLD | NEW |