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

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

Issue 468233004: Cleanup: Another round of removing unneeded grit #includes in chrome. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix mac, undo ui_localizer.mm Created 6 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) 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/external_protocol_dialog.h" 5 #include "chrome/browser/ui/views/external_protocol_dialog.h"
6 6
7 #include "base/metrics/histogram.h" 7 #include "base/metrics/histogram.h"
8 #include "base/strings/string_util.h" 8 #include "base/strings/string_util.h"
9 #include "base/strings/utf_string_conversions.h" 9 #include "base/strings/utf_string_conversions.h"
10 #include "chrome/browser/external_protocol/external_protocol_handler.h" 10 #include "chrome/browser/external_protocol/external_protocol_handler.h"
11 #include "chrome/browser/tab_contents/tab_util.h" 11 #include "chrome/browser/tab_contents/tab_util.h"
12 #include "chrome/browser/ui/external_protocol_dialog_delegate.h" 12 #include "chrome/browser/ui/external_protocol_dialog_delegate.h"
13 #include "chrome/browser/ui/views/constrained_window_views.h" 13 #include "chrome/browser/ui/views/constrained_window_views.h"
14 #include "chrome/grit/chromium_strings.h"
15 #include "chrome/grit/generated_resources.h" 14 #include "chrome/grit/generated_resources.h"
16 #include "content/public/browser/web_contents.h" 15 #include "content/public/browser/web_contents.h"
17 #include "ui/base/l10n/l10n_util.h" 16 #include "ui/base/l10n/l10n_util.h"
18 #include "ui/gfx/text_elider.h" 17 #include "ui/gfx/text_elider.h"
19 #include "ui/views/controls/message_box_view.h" 18 #include "ui/views/controls/message_box_view.h"
20 #include "ui/views/widget/widget.h" 19 #include "ui/views/widget/widget.h"
21 20
22 using content::WebContents; 21 using content::WebContents;
23 22
24 namespace { 23 namespace {
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 message_box_view_->SetCheckBoxLabel(delegate_->GetCheckboxText()); 131 message_box_view_->SetCheckBoxLabel(delegate_->GetCheckboxText());
133 132
134 // Dialog is top level if we don't have a web_contents associated with us. 133 // Dialog is top level if we don't have a web_contents associated with us.
135 WebContents* web_contents = tab_util::GetWebContentsByID( 134 WebContents* web_contents = tab_util::GetWebContentsByID(
136 render_process_host_id_, routing_id_); 135 render_process_host_id_, routing_id_);
137 gfx::NativeWindow parent_window = NULL; 136 gfx::NativeWindow parent_window = NULL;
138 if (web_contents) 137 if (web_contents)
139 parent_window = web_contents->GetTopLevelNativeWindow(); 138 parent_window = web_contents->GetTopLevelNativeWindow();
140 CreateBrowserModalDialogViews(this, parent_window)->Show(); 139 CreateBrowserModalDialogViews(this, parent_window)->Show();
141 } 140 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698