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

Side by Side Diff: chrome/browser/chromeos/extensions/file_manager/private_api_misc.cc

Issue 1026733003: Files.app: Add private API to check if PiexLoader is enabled or not. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Turn RunSync into Run. Created 5 years, 9 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 unified diff | Download patch
OLDNEW
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
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 ExtensionFunction::ResponseAction
464 FileManagerPrivateIsPiexLoaderEnabledFunction::Run() {
465 #if defined(OFFICIAL_BUILD)
466 return RespondNow(OneArgument(
467 new base::FundamentalValue(true)));
468 #else
469 return RespondNow(OneArgument(
470 new base::FundamentalValue(false)));
471 #endif
472 }
473
463 } // namespace extensions 474 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698