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

Side by Side Diff: ios/chrome/browser/tabs/tab.mm

Issue 2670743002: Track renderer crash detected on WebState via GlobalWebStateObserver (Closed)
Patch Set: comment Created 3 years, 8 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 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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698