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

Side by Side Diff: chrome/browser/chromeos/app_mode/kiosk_app_manager.cc

Issue 271263002: New test cases for kiosk app crx file cache. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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 | Annotate | Revision Log
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/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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698