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

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

Issue 2645783002: Replaced webControllerWebProcessDidCrash: with RenderProcessGone. (Closed)
Patch Set: Created 3 years, 11 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
« no previous file with comments | « no previous file | ios/web/public/web_state/ui/crw_web_delegate.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 2092 matching lines...) Expand 10 before | Expand all | Expand 10 after
2103 web::SecurityStyle securityStyle = 2103 web::SecurityStyle securityStyle =
2104 item ? item->GetSSL().security_style : web::SECURITY_STYLE_UNKNOWN; 2104 item ? item->GetSSL().security_style : web::SECURITY_STYLE_UNKNOWN;
2105 if (securityStyle == web::SECURITY_STYLE_AUTHENTICATION_BROKEN) { 2105 if (securityStyle == web::SECURITY_STYLE_AUTHENTICATION_BROKEN) {
2106 [fullScreenController_ disableFullScreen]; 2106 [fullScreenController_ disableFullScreen];
2107 } 2107 }
2108 2108
2109 [parentTabModel_ notifyTabChanged:self]; 2109 [parentTabModel_ notifyTabChanged:self];
2110 [self updateFullscreenWithToolbarVisible:YES]; 2110 [self updateFullscreenWithToolbarVisible:YES];
2111 } 2111 }
2112 2112
2113 - (void)webControllerWebProcessDidCrash:(CRWWebController*)webController { 2113 - (void)renderProcessGoneForWebState:(web::WebState*)webState {
2114 if (browserState_ && !browserState_->IsOffTheRecord()) { 2114 if (browserState_ && !browserState_->IsOffTheRecord()) {
2115 // Report the crash. 2115 // Report the crash.
2116 GetApplicationContext() 2116 GetApplicationContext()
2117 ->GetMetricsServicesManager() 2117 ->GetMetricsServicesManager()
2118 ->OnRendererProcessCrash(); 2118 ->OnRendererProcessCrash();
2119 2119
2120 // Log the tab state for the termination. 2120 // Log the tab state for the termination.
2121 RendererTerminationTabState tab_state = 2121 RendererTerminationTabState tab_state =
2122 visible_ ? RendererTerminationTabState::FOREGROUND_TAB_FOREGROUND_APP 2122 visible_ ? RendererTerminationTabState::FOREGROUND_TAB_FOREGROUND_APP
2123 : RendererTerminationTabState::BACKGROUND_TAB_FOREGROUND_APP; 2123 : RendererTerminationTabState::BACKGROUND_TAB_FOREGROUND_APP;
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after
2349 2349
2350 - (TabModel*)parentTabModel { 2350 - (TabModel*)parentTabModel {
2351 return parentTabModel_; 2351 return parentTabModel_;
2352 } 2352 }
2353 2353
2354 - (FormInputAccessoryViewController*)inputAccessoryViewController { 2354 - (FormInputAccessoryViewController*)inputAccessoryViewController {
2355 return inputAccessoryViewController_.get(); 2355 return inputAccessoryViewController_.get();
2356 } 2356 }
2357 2357
2358 @end 2358 @end
OLDNEW
« no previous file with comments | « no previous file | ios/web/public/web_state/ui/crw_web_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698