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

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

Issue 2778053002: Fetch ARC Kiosk app name and icon from Android side. (Closed)
Patch Set: some nits Created 3 years, 8 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/app_mode/kiosk_app_manager.h" 5 #include "chrome/browser/chromeos/app_mode/kiosk_app_manager.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <utility> 9 #include <utility>
10 10
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 base::CommandLine cmd_line(base::CommandLine::NO_PROGRAM); 156 base::CommandLine cmd_line(base::CommandLine::NO_PROGRAM);
157 cmd_line.AppendSwitch(flag_name); 157 cmd_line.AppendSwitch(flag_name);
158 DCHECK_EQ(2U, cmd_line.argv().size()); 158 DCHECK_EQ(2U, cmd_line.argv().size());
159 return cmd_line.argv()[1]; 159 return cmd_line.argv()[1];
160 } 160 }
161 161
162 } // namespace 162 } // namespace
163 163
164 // static 164 // static
165 const char KioskAppManager::kKioskDictionaryName[] = "kiosk"; 165 const char KioskAppManager::kKioskDictionaryName[] = "kiosk";
166 const char KioskAppManager::kKeyApps[] = "apps";
167 const char KioskAppManager::kKeyAutoLoginState[] = "auto_login_state"; 166 const char KioskAppManager::kKeyAutoLoginState[] = "auto_login_state";
168 const char KioskAppManager::kIconCacheDir[] = "kiosk/icon"; 167 const char KioskAppManager::kIconCacheDir[] = "kiosk/icon";
169 const char KioskAppManager::kCrxCacheDir[] = "kiosk/crx"; 168 const char KioskAppManager::kCrxCacheDir[] = "kiosk/crx";
170 const char KioskAppManager::kCrxUnpackDir[] = "kiosk_unpack"; 169 const char KioskAppManager::kCrxUnpackDir[] = "kiosk_unpack";
171 170
172 // static 171 // static
173 static base::LazyInstance<KioskAppManager>::DestructorAtExit instance = 172 static base::LazyInstance<KioskAppManager>::DestructorAtExit instance =
174 LAZY_INSTANCE_INITIALIZER; 173 LAZY_INSTANCE_INITIALIZER;
175 KioskAppManager* KioskAppManager::Get() { 174 KioskAppManager* KioskAppManager::Get() {
176 return instance.Pointer(); 175 return instance.Pointer();
(...skipping 792 matching lines...) Expand 10 before | Expand all | Expand 10 after
969 base::TimeDelta KioskAppManager::GetAutoLaunchDelay() const { 968 base::TimeDelta KioskAppManager::GetAutoLaunchDelay() const {
970 int delay; 969 int delay;
971 if (!CrosSettings::Get()->GetInteger( 970 if (!CrosSettings::Get()->GetInteger(
972 kAccountsPrefDeviceLocalAccountAutoLoginDelay, &delay)) { 971 kAccountsPrefDeviceLocalAccountAutoLoginDelay, &delay)) {
973 return base::TimeDelta(); // Default delay is 0ms. 972 return base::TimeDelta(); // Default delay is 0ms.
974 } 973 }
975 return base::TimeDelta::FromMilliseconds(delay); 974 return base::TimeDelta::FromMilliseconds(delay);
976 } 975 }
977 976
978 } // namespace chromeos 977 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698