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

Side by Side Diff: ios/chrome/browser/infobars/infobar_manager_impl.cc

Issue 1471763004: Upstream changes made downstream to infobar_manager_impl.{cc,h}. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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 | « ios/chrome/browser/infobars/infobar_manager_impl.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 #include "ios/chrome/browser/infobars/infobar_manager_impl.h" 5 #include "ios/chrome/browser/infobars/infobar_manager_impl.h"
6 6
7 #include "components/infobars/core/confirm_infobar_delegate.h" 7 #include "components/infobars/core/confirm_infobar_delegate.h"
8 #include "components/infobars/core/infobar.h" 8 #include "components/infobars/core/infobar.h"
9 #include "components/infobars/core/infobar_delegate.h" 9 #include "components/infobars/core/infobar_delegate.h"
10 #include "ios/chrome/browser/infobars/infobar_utils.h" 10 #include "ios/chrome/browser/infobars/infobar_utils.h"
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 } 71 }
72 72
73 void InfoBarManagerImpl::WebStateDestroyed() { 73 void InfoBarManagerImpl::WebStateDestroyed() {
74 // The WebState is going away; be aggressively paranoid and delete this 74 // The WebState is going away; be aggressively paranoid and delete this
75 // InfoBarManagerImpl lest other parts of the system attempt to add infobars 75 // InfoBarManagerImpl lest other parts of the system attempt to add infobars
76 // or use it otherwise during the destruction. 76 // or use it otherwise during the destruction.
77 web_state()->RemoveUserData(UserDataKey()); 77 web_state()->RemoveUserData(UserDataKey());
78 // That was the equivalent of "delete this". This object is now destroyed; 78 // That was the equivalent of "delete this". This object is now destroyed;
79 // returning from this function is the only safe thing to do. 79 // returning from this function is the only safe thing to do.
80 } 80 }
81
82 void InfoBarManagerImpl::OpenURL(const GURL& url,
83 WindowOpenDisposition disposition) {
84 NOTIMPLEMENTED();
85 }
OLDNEW
« no previous file with comments | « ios/chrome/browser/infobars/infobar_manager_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698