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

Unified Diff: chrome/browser/ui/views/extensions/extension_dialog.cc

Issue 10833014: Coverity fixlet. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Uploaded after rebasing. Created 8 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/views/extensions/extension_dialog.cc
diff --git a/chrome/browser/ui/views/extensions/extension_dialog.cc b/chrome/browser/ui/views/extensions/extension_dialog.cc
index e3aeb3d6d2331bb3780cb0f241b2fa9de5aabf8b..dec0bfaeedd4ca6268f979c9e3ec4e1aabe2e0ca 100644
--- a/chrome/browser/ui/views/extensions/extension_dialog.cc
+++ b/chrome/browser/ui/views/extensions/extension_dialog.cc
@@ -186,8 +186,10 @@ void ExtensionDialog::Close() {
void ExtensionDialog::MaybeFocusRenderView() {
views::FocusManager* focus_manager = GetWidget()->GetFocusManager();
+ DCHECK(focus_manager != NULL);
+
// Already there's a focused view, so no need to switch the focus.
- if (focus_manager && focus_manager->GetFocusedView())
+ if (focus_manager->GetFocusedView())
return;
content::RenderWidgetHostView* view = host()->render_view_host()->GetView();
« no previous file with comments | « chrome/browser/extensions/extension_info_map.cc ('k') | chrome/browser/ui/views/tabs/browser_tab_strip_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698