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

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

Issue 2733283002: Require explicit selection of traits for LazyInstance (Closed)
Patch Set: l10n again Created 3 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 #ifndef CHROME_BROWSER_CHROMEOS_APP_MODE_KIOSK_APP_MANAGER_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_APP_MODE_KIOSK_APP_MANAGER_H_
6 #define CHROME_BROWSER_CHROMEOS_APP_MODE_KIOSK_APP_MANAGER_H_ 6 #define CHROME_BROWSER_CHROMEOS_APP_MODE_KIOSK_APP_MANAGER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <memory> 9 #include <memory>
10 #include <string> 10 #include <string>
(...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after
244 const GURL& update_url, 244 const GURL& update_url,
245 const std::string& required_platform_version); 245 const std::string& required_platform_version);
246 246
247 AppSession* app_session() { return app_session_.get(); } 247 AppSession* app_session() { return app_session_.get(); }
248 bool external_loader_created() const { return external_loader_created_; } 248 bool external_loader_created() const { return external_loader_created_; }
249 bool secondary_app_external_loader_created() const { 249 bool secondary_app_external_loader_created() const {
250 return secondary_app_external_loader_created_; 250 return secondary_app_external_loader_created_;
251 } 251 }
252 252
253 private: 253 private:
254 friend struct base::DefaultLazyInstanceTraits<KioskAppManager>; 254 friend struct base::LazyInstanceTraitsBase<KioskAppManager>;
255 friend std::default_delete<KioskAppManager>; 255 friend std::default_delete<KioskAppManager>;
256 friend class KioskAppManagerTest; 256 friend class KioskAppManagerTest;
257 friend class KioskTest; 257 friend class KioskTest;
258 friend class KioskUpdateTest; 258 friend class KioskUpdateTest;
259 259
260 enum AutoLoginState { 260 enum AutoLoginState {
261 AUTOLOGIN_NONE = 0, 261 AUTOLOGIN_NONE = 0,
262 AUTOLOGIN_REQUESTED = 1, 262 AUTOLOGIN_REQUESTED = 1,
263 AUTOLOGIN_APPROVED = 2, 263 AUTOLOGIN_APPROVED = 2,
264 AUTOLOGIN_REJECTED = 3, 264 AUTOLOGIN_REJECTED = 3,
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
355 base::WeakPtr<KioskAppExternalLoader> secondary_app_external_loader_; 355 base::WeakPtr<KioskAppExternalLoader> secondary_app_external_loader_;
356 356
357 std::unique_ptr<AppSession> app_session_; 357 std::unique_ptr<AppSession> app_session_;
358 358
359 DISALLOW_COPY_AND_ASSIGN(KioskAppManager); 359 DISALLOW_COPY_AND_ASSIGN(KioskAppManager);
360 }; 360 };
361 361
362 } // namespace chromeos 362 } // namespace chromeos
363 363
364 #endif // CHROME_BROWSER_CHROMEOS_APP_MODE_KIOSK_APP_MANAGER_H_ 364 #endif // CHROME_BROWSER_CHROMEOS_APP_MODE_KIOSK_APP_MANAGER_H_
OLDNEW
« no previous file with comments | « chrome/browser/chrome_content_browser_client.cc ('k') | chrome/browser/chromeos/app_mode/kiosk_app_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698