| 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/login/app_launch_controller.h" | 5 #include "chrome/browser/chromeos/login/app_launch_controller.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/callback.h" | 8 #include "base/callback.h" |
| 9 #include "base/files/file_path.h" | 9 #include "base/files/file_path.h" |
| 10 #include "base/json/json_file_value_serializer.h" | 10 #include "base/json/json_file_value_serializer.h" |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 } else { | 75 } else { |
| 76 window_registry_->AddObserver(this); | 76 window_registry_->AddObserver(this); |
| 77 } | 77 } |
| 78 } | 78 } |
| 79 virtual ~AppWindowWatcher() { | 79 virtual ~AppWindowWatcher() { |
| 80 window_registry_->RemoveObserver(this); | 80 window_registry_->RemoveObserver(this); |
| 81 } | 81 } |
| 82 | 82 |
| 83 private: | 83 private: |
| 84 // extensions::AppWindowRegistry::Observer overrides: | 84 // extensions::AppWindowRegistry::Observer overrides: |
| 85 virtual void OnAppWindowAdded(extensions::AppWindow* app_window) OVERRIDE { | 85 virtual void OnAppWindowAdded(extensions::AppWindow* app_window) override { |
| 86 if (app_window->extension_id() == app_id_) { | 86 if (app_window->extension_id() == app_id_) { |
| 87 window_registry_->RemoveObserver(this); | 87 window_registry_->RemoveObserver(this); |
| 88 NotifyAppWindowCreated(); | 88 NotifyAppWindowCreated(); |
| 89 } | 89 } |
| 90 } | 90 } |
| 91 | 91 |
| 92 void NotifyAppWindowCreated() { | 92 void NotifyAppWindowCreated() { |
| 93 controller_->OnAppWindowCreated(); | 93 controller_->OnAppWindowCreated(); |
| 94 } | 94 } |
| 95 | 95 |
| (...skipping 324 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 420 KioskAppLaunchError::Save(error); | 420 KioskAppLaunchError::Save(error); |
| 421 chrome::AttemptUserExit(); | 421 chrome::AttemptUserExit(); |
| 422 CleanUp(); | 422 CleanUp(); |
| 423 } | 423 } |
| 424 | 424 |
| 425 bool AppLaunchController::IsShowingNetworkConfigScreen() { | 425 bool AppLaunchController::IsShowingNetworkConfigScreen() { |
| 426 return network_config_requested_; | 426 return network_config_requested_; |
| 427 } | 427 } |
| 428 | 428 |
| 429 } // namespace chromeos | 429 } // namespace chromeos |
| OLD | NEW |