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

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

Issue 7670041: Add --use-more-webui runtime flag to toggle WebUI replacements for native dialogs. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Fix spelling error in comment. Created 9 years, 4 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/browser_dialogs.h" 5 #include "chrome/browser/ui/browser_dialogs.h"
6 6
7 #include "base/i18n/rtl.h" 7 #include "base/i18n/rtl.h"
8 #include "base/utf_string_conversions.h" 8 #include "base/utf_string_conversions.h"
9 #include "chrome/browser/favicon/favicon_tab_helper.h" 9 #include "chrome/browser/favicon/favicon_tab_helper.h"
10 #include "chrome/browser/ui/browser_list.h" 10 #include "chrome/browser/ui/browser_list.h"
(...skipping 455 matching lines...) Expand 10 before | Expand all | Expand 10 after
466 } 466 }
467 467
468 static HungRendererDialogView* CreateHungRendererDialogView() { 468 static HungRendererDialogView* CreateHungRendererDialogView() {
469 HungRendererDialogView* cv = new HungRendererDialogView; 469 HungRendererDialogView* cv = new HungRendererDialogView;
470 views::Widget::CreateWindow(cv); 470 views::Widget::CreateWindow(cv);
471 return cv; 471 return cv;
472 } 472 }
473 473
474 namespace browser { 474 namespace browser {
475 475
476 void ShowHungRendererDialog(TabContents* contents) { 476 void ShowNativeHungRendererDialog(TabContents* contents) {
477 if (!logging::DialogsAreSuppressed()) { 477 if (!logging::DialogsAreSuppressed()) {
478 if (!g_instance) 478 if (!g_instance)
479 g_instance = CreateHungRendererDialogView(); 479 g_instance = CreateHungRendererDialogView();
480 g_instance->ShowForTabContents(contents); 480 g_instance->ShowForTabContents(contents);
481 } 481 }
482 } 482 }
483 483
484 void HideHungRendererDialog(TabContents* contents) { 484 void HideNativeHungRendererDialog(TabContents* contents) {
485 if (!logging::DialogsAreSuppressed() && g_instance) 485 if (!logging::DialogsAreSuppressed() && g_instance)
486 g_instance->EndForTabContents(contents); 486 g_instance->EndForTabContents(contents);
487 } 487 }
488 488
489 } // namespace browser 489 } // namespace browser
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698