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

Side by Side Diff: chrome/browser/chromeos/external_protocol_dialog.cc

Issue 14987006: Remove the external protocol dialog black border. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 7 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
« no previous file with comments | « no previous file | chrome/browser/ui/views/external_protocol_dialog.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/chromeos/external_protocol_dialog.h" 5 #include "chrome/browser/chromeos/external_protocol_dialog.h"
6 6
7 #include "base/metrics/histogram.h" 7 #include "base/metrics/histogram.h"
8 #include "base/string_util.h" 8 #include "base/string_util.h"
9 #include "base/utf_string_conversions.h" 9 #include "base/utf_string_conversions.h"
10 #include "chrome/browser/external_protocol/external_protocol_handler.h" 10 #include "chrome/browser/external_protocol/external_protocol_handler.h"
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 message_box_view_->SetCheckBoxLabel( 117 message_box_view_->SetCheckBoxLabel(
118 l10n_util::GetStringUTF16(IDS_EXTERNAL_PROTOCOL_CHECKBOX_TEXT)); 118 l10n_util::GetStringUTF16(IDS_EXTERNAL_PROTOCOL_CHECKBOX_TEXT));
119 119
120 gfx::NativeWindow parent_window; 120 gfx::NativeWindow parent_window;
121 if (web_contents) { 121 if (web_contents) {
122 parent_window = web_contents->GetView()->GetTopLevelNativeWindow(); 122 parent_window = web_contents->GetView()->GetTopLevelNativeWindow();
123 } else { 123 } else {
124 // Dialog is top level if we don't have a web_contents associated with us. 124 // Dialog is top level if we don't have a web_contents associated with us.
125 parent_window = NULL; 125 parent_window = NULL;
126 } 126 }
127 views::Widget::CreateWindowWithParent(this, parent_window)->Show(); 127 views::DialogDelegate::CreateDialogWidget(this, NULL, parent_window)->Show();
128 } 128 }
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/views/external_protocol_dialog.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698