OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 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 #import "ios/chrome/browser/tabs/tab.h" | 5 #import "ios/chrome/browser/tabs/tab.h" |
6 | 6 |
7 #import <CoreLocation/CoreLocation.h> | 7 #import <CoreLocation/CoreLocation.h> |
8 #import <UIKit/UIKit.h> | 8 #import <UIKit/UIKit.h> |
9 | 9 |
10 #include <utility> | 10 #include <utility> |
(...skipping 1886 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1897 [fullScreenController_ disableFullScreen]; | 1897 [fullScreenController_ disableFullScreen]; |
1898 } | 1898 } |
1899 } | 1899 } |
1900 | 1900 |
1901 [parentTabModel_ notifyTabChanged:self]; | 1901 [parentTabModel_ notifyTabChanged:self]; |
1902 [self updateFullscreenWithToolbarVisible:YES]; | 1902 [self updateFullscreenWithToolbarVisible:YES]; |
1903 } | 1903 } |
1904 | 1904 |
1905 - (void)renderProcessGoneForWebState:(web::WebState*)webState { | 1905 - (void)renderProcessGoneForWebState:(web::WebState*)webState { |
1906 if (browserState_ && !browserState_->IsOffTheRecord()) { | 1906 if (browserState_ && !browserState_->IsOffTheRecord()) { |
1907 // Report the crash. | |
1908 GetApplicationContext() | |
1909 ->GetMetricsServicesManager() | |
1910 ->OnRendererProcessCrash(); | |
1911 | |
1912 // Log the tab state for the termination. | 1907 // Log the tab state for the termination. |
1913 RendererTerminationTabState tab_state = | 1908 RendererTerminationTabState tab_state = |
1914 visible_ ? RendererTerminationTabState::FOREGROUND_TAB_FOREGROUND_APP | 1909 visible_ ? RendererTerminationTabState::FOREGROUND_TAB_FOREGROUND_APP |
1915 : RendererTerminationTabState::BACKGROUND_TAB_FOREGROUND_APP; | 1910 : RendererTerminationTabState::BACKGROUND_TAB_FOREGROUND_APP; |
1916 if ([UIApplication sharedApplication].applicationState == | 1911 if ([UIApplication sharedApplication].applicationState == |
1917 UIApplicationStateBackground) { | 1912 UIApplicationStateBackground) { |
1918 tab_state = | 1913 tab_state = |
1919 visible_ ? RendererTerminationTabState::FOREGROUND_TAB_BACKGROUND_APP | 1914 visible_ ? RendererTerminationTabState::FOREGROUND_TAB_BACKGROUND_APP |
1920 : RendererTerminationTabState::BACKGROUND_TAB_BACKGROUND_APP; | 1915 : RendererTerminationTabState::BACKGROUND_TAB_BACKGROUND_APP; |
1921 } | 1916 } |
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2087 | 2082 |
2088 - (TabModel*)parentTabModel { | 2083 - (TabModel*)parentTabModel { |
2089 return parentTabModel_; | 2084 return parentTabModel_; |
2090 } | 2085 } |
2091 | 2086 |
2092 - (FormInputAccessoryViewController*)inputAccessoryViewController { | 2087 - (FormInputAccessoryViewController*)inputAccessoryViewController { |
2093 return inputAccessoryViewController_.get(); | 2088 return inputAccessoryViewController_.get(); |
2094 } | 2089 } |
2095 | 2090 |
2096 @end | 2091 @end |
OLD | NEW |