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

Unified Diff: chrome/browser/ui/content_settings/content_setting_bubble_model_unittest.cc

Issue 22694006: Infobar system refactor. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 years 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/content_settings/content_setting_bubble_model_unittest.cc
===================================================================
--- chrome/browser/ui/content_settings/content_setting_bubble_model_unittest.cc (revision 238220)
+++ chrome/browser/ui/content_settings/content_setting_bubble_model_unittest.cc (working copy)
@@ -236,13 +236,9 @@
CONTENT_SETTINGS_TYPE_MEDIASTREAM_CAMERA,
std::string()));
- // Removing an |InfoBarDelegate| from the |InfoBarService| does not delete
- // it. Hence the |delegate| must be cleaned up after it was removed from the
- // |infobar_service|.
InfoBarService* infobar_service =
InfoBarService::FromWebContents(web_contents());
- scoped_ptr<InfoBarDelegate> delegate(infobar_service->infobar_at(0));
- infobar_service->RemoveInfoBar(delegate.get());
+ infobar_service->RemoveInfoBar(infobar_service->infobar_at(0));
}
TEST_F(ContentSettingBubbleModelTest, MediastreamMic) {

Powered by Google App Engine
This is Rietveld 408576698