| Index: ios/chrome/browser/tabs/tab.mm
|
| diff --git a/ios/chrome/browser/tabs/tab.mm b/ios/chrome/browser/tabs/tab.mm
|
| index 5b589354d00f43ddc78e40eb691844cddb3d69dd..71c01ac095aead1dddecba32031cafdf6de86798 100644
|
| --- a/ios/chrome/browser/tabs/tab.mm
|
| +++ b/ios/chrome/browser/tabs/tab.mm
|
| @@ -1403,6 +1403,12 @@ void TabInfoBarObserver::OnInfoBarReplaced(infobars::InfoBar* old_infobar,
|
| faviconDriver->FetchFavicon(navigation->GetUrl());
|
| }
|
| }
|
| +
|
| + if (!navigation->IsErrorPage()) {
|
| + [self addCurrentEntryToHistoryDB];
|
| + [self countMainFrameLoad];
|
| + }
|
| +
|
| [parentTabModel_ notifyTabChanged:self];
|
| }
|
|
|
| @@ -1732,15 +1738,6 @@ void TabInfoBarObserver::OnInfoBarReplaced(infobars::InfoBar* old_infobar,
|
| }
|
| }
|
|
|
| -// Called when the page URL has changed.
|
| -- (void)webDidStartLoadingURL:(const GURL&)currentUrl
|
| - shouldUpdateHistory:(BOOL)updateHistory {
|
| - if (updateHistory) {
|
| - [self addCurrentEntryToHistoryDB];
|
| - [self countMainFrameLoad];
|
| - }
|
| -}
|
| -
|
| - (void)webState:(web::WebState*)webState
|
| didLoadPageWithSuccess:(BOOL)loadSuccess {
|
| DCHECK(self.webController.loadPhase == web::PAGE_LOADED);
|
|
|