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

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

Issue 209143002: Added shortcut for NW config screen in kiosk. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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 | 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/app_launch_utils.h" 5 #include "chrome/browser/chromeos/app_mode/app_launch_utils.h"
6 6
7 #include "base/timer/timer.h" 7 #include "base/timer/timer.h"
8 #include "chrome/browser/chromeos/app_mode/kiosk_app_launch_error.h" 8 #include "chrome/browser/chromeos/app_mode/kiosk_app_launch_error.h"
9 #include "chrome/browser/chromeos/app_mode/startup_app_launcher.h" 9 #include "chrome/browser/chromeos/app_mode/startup_app_launcher.h"
10 #include "chrome/browser/lifetime/application_lifetime.h" 10 #include "chrome/browser/lifetime/application_lifetime.h"
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 virtual void OnInstallingApp() OVERRIDE {} 48 virtual void OnInstallingApp() OVERRIDE {}
49 virtual void OnReadyToLaunch() OVERRIDE { 49 virtual void OnReadyToLaunch() OVERRIDE {
50 startup_app_launcher_->LaunchApp(); 50 startup_app_launcher_->LaunchApp();
51 } 51 }
52 virtual void OnLaunchSucceeded() OVERRIDE { Cleanup(); } 52 virtual void OnLaunchSucceeded() OVERRIDE { Cleanup(); }
53 virtual void OnLaunchFailed(KioskAppLaunchError::Error error) OVERRIDE { 53 virtual void OnLaunchFailed(KioskAppLaunchError::Error error) OVERRIDE {
54 KioskAppLaunchError::Save(error); 54 KioskAppLaunchError::Save(error);
55 chrome::AttemptUserExit(); 55 chrome::AttemptUserExit();
56 Cleanup(); 56 Cleanup();
57 } 57 }
58 virtual bool IsShowingNetworkConfigScreen() OVERRIDE { return false; }
58 59
59 scoped_ptr<StartupAppLauncher> startup_app_launcher_; 60 scoped_ptr<StartupAppLauncher> startup_app_launcher_;
60 61
61 DISALLOW_COPY_AND_ASSIGN(AppLaunchManager); 62 DISALLOW_COPY_AND_ASSIGN(AppLaunchManager);
62 }; 63 };
63 64
64 void LaunchAppOrDie(Profile* profile, const std::string& app_id) { 65 void LaunchAppOrDie(Profile* profile, const std::string& app_id) {
65 // AppLaunchManager manages its own lifetime. 66 // AppLaunchManager manages its own lifetime.
66 (new AppLaunchManager(profile, app_id))->Start(); 67 (new AppLaunchManager(profile, app_id))->Start();
67 } 68 }
68 69
69 } // namespace chromeos 70 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/app/chromeos_strings.grdp ('k') | chrome/browser/chromeos/app_mode/startup_app_launcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698