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

Side by Side Diff: chrome/browser/ui/views/content_setting_bubble_contents.cc

Issue 11148007: views: Fix a bunch of dchecks. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixes Created 8 years, 2 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 #include "chrome/browser/ui/views/content_setting_bubble_contents.h" 5 #include "chrome/browser/ui/views/content_setting_bubble_contents.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 304 matching lines...) Expand 10 before | Expand all | Expand 10 after
315 315
316 PopupLinks::const_iterator i(popup_links_.find(source)); 316 PopupLinks::const_iterator i(popup_links_.find(source));
317 DCHECK(i != popup_links_.end()); 317 DCHECK(i != popup_links_.end());
318 content_setting_bubble_model_->OnPopupClicked(i->second); 318 content_setting_bubble_model_->OnPopupClicked(i->second);
319 } 319 }
320 320
321 void ContentSettingBubbleContents::Observe( 321 void ContentSettingBubbleContents::Observe(
322 int type, 322 int type,
323 const content::NotificationSource& source, 323 const content::NotificationSource& source,
324 const content::NotificationDetails& details) { 324 const content::NotificationDetails& details) {
325 DCHECK(type == content::NOTIFICATION_WEB_CONTENTS_DESTROYED); 325 DCHECK_EQ(content::NOTIFICATION_WEB_CONTENTS_DESTROYED, type);
326 DCHECK(source == content::Source<WebContents>(web_contents_)); 326 DCHECK(source == content::Source<WebContents>(web_contents_));
327 web_contents_ = NULL; 327 web_contents_ = NULL;
328 } 328 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698