| OLD | NEW |
| 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 Loading... |
| 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 } |
| OLD | NEW |