| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 // ====== New Architecture ===== | 5 // ====== New Architecture ===== |
| 6 // = This code is only used in the new iOS Chrome architecture. = | 6 // = This code is only used in the new iOS Chrome architecture. = |
| 7 // ============================================================================ | 7 // ============================================================================ |
| 8 | 8 |
| 9 #import "ios/chrome/app/steps/launch_to_background.h" | 9 #import "ios/clean/chrome/app/steps/launch_to_background.h" |
| 10 | 10 |
| 11 #include <memory> | 11 #include <memory> |
| 12 | 12 |
| 13 #include "base/mac/bundle_locations.h" | 13 #include "base/mac/bundle_locations.h" |
| 14 #include "base/mac/foundation_util.h" | 14 #include "base/mac/foundation_util.h" |
| 15 #include "base/memory/ptr_util.h" | 15 #include "base/memory/ptr_util.h" |
| 16 #include "base/strings/sys_string_conversions.h" | 16 #include "base/strings/sys_string_conversions.h" |
| 17 #include "base/supports_user_data.h" | 17 #include "base/supports_user_data.h" |
| 18 #include "ios/chrome/app/application_state.h" | |
| 19 #include "ios/chrome/app/startup/ios_chrome_main.h" | 18 #include "ios/chrome/app/startup/ios_chrome_main.h" |
| 20 #include "ios/chrome/app/startup/register_experimental_settings.h" | 19 #include "ios/chrome/app/startup/register_experimental_settings.h" |
| 21 #include "ios/chrome/browser/application_context.h" | 20 #include "ios/chrome/browser/application_context.h" |
| 22 #include "ios/chrome/browser/browser_state/chrome_browser_state_manager.h" | 21 #include "ios/chrome/browser/browser_state/chrome_browser_state_manager.h" |
| 23 #include "ios/chrome/browser/web/chrome_web_client.h" | 22 #include "ios/chrome/browser/web/chrome_web_client.h" |
| 23 #include "ios/clean/chrome/app/application_state.h" |
| 24 #include "ios/web/public/web_client.h" | 24 #include "ios/web/public/web_client.h" |
| 25 | 25 |
| 26 #if !defined(__has_feature) || !__has_feature(objc_arc) | 26 #if !defined(__has_feature) || !__has_feature(objc_arc) |
| 27 #error "This file requires ARC support." | 27 #error "This file requires ARC support." |
| 28 #endif | 28 #endif |
| 29 | 29 |
| 30 // Step that removes a previously-stored IOSChromeMain instance. | 30 // Step that removes a previously-stored IOSChromeMain instance. |
| 31 @interface StopChromeMain : NSObject<ApplicationStep> | 31 @interface StopChromeMain : NSObject<ApplicationStep> |
| 32 @end | 32 @end |
| 33 | 33 |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 state.phase == APPLICATION_BACKGROUNDED; | 122 state.phase == APPLICATION_BACKGROUNDED; |
| 123 } | 123 } |
| 124 | 124 |
| 125 - (void)runInState:(ApplicationState*)state { | 125 - (void)runInState:(ApplicationState*)state { |
| 126 state.browserState = GetApplicationContext() | 126 state.browserState = GetApplicationContext() |
| 127 ->GetChromeBrowserStateManager() | 127 ->GetChromeBrowserStateManager() |
| 128 ->GetLastUsedBrowserState(); | 128 ->GetLastUsedBrowserState(); |
| 129 } | 129 } |
| 130 | 130 |
| 131 @end | 131 @end |
| OLD | NEW |