| 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/app_mode/kiosk_app_manager.h" | 5 #include "chrome/browser/chromeos/app_mode/kiosk_app_manager.h" |
| 6 | 6 |
| 7 #include <map> | 7 #include <map> |
| 8 #include <set> | 8 #include <set> |
| 9 | 9 |
| 10 #include "base/bind.h" | 10 #include "base/bind.h" |
| (...skipping 518 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 529 dict_update->SetInteger(kKeyAutoLoginState, state); | 529 dict_update->SetInteger(kKeyAutoLoginState, state); |
| 530 prefs->CommitPendingWrite(); | 530 prefs->CommitPendingWrite(); |
| 531 } | 531 } |
| 532 | 532 |
| 533 void KioskAppManager::GetKioskAppCrxCacheDir(base::FilePath* cache_dir) { | 533 void KioskAppManager::GetKioskAppCrxCacheDir(base::FilePath* cache_dir) { |
| 534 base::FilePath user_data_dir; | 534 base::FilePath user_data_dir; |
| 535 CHECK(PathService::Get(chrome::DIR_USER_DATA, &user_data_dir)); | 535 CHECK(PathService::Get(chrome::DIR_USER_DATA, &user_data_dir)); |
| 536 *cache_dir = user_data_dir.AppendASCII(kCrxCacheDir); | 536 *cache_dir = user_data_dir.AppendASCII(kCrxCacheDir); |
| 537 } | 537 } |
| 538 | 538 |
| 539 bool KioskAppManager::GetKioskAppExtension(const std::string& app_id, |
| 540 base::FilePath* file_path, |
| 541 std::string* version) { |
| 542 return external_cache_->GetExtension(app_id, file_path, version); |
| 543 } |
| 544 |
| 539 } // namespace chromeos | 545 } // namespace chromeos |
| OLD | NEW |