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

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

Issue 2911773002: Clean up unused grit header includes in chrome/ (Closed)
Patch Set: rebase Created 3 years, 6 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
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 <utility> 7 #include <utility>
8 8
9 #include "base/metrics/histogram_macros.h" 9 #include "base/metrics/histogram_macros.h"
10 #include "base/strings/string_util.h" 10 #include "base/strings/string_util.h"
11 #include "chrome/browser/external_protocol/external_protocol_handler.h" 11 #include "chrome/browser/external_protocol/external_protocol_handler.h"
12 #include "chrome/browser/tab_contents/tab_util.h" 12 #include "chrome/browser/tab_contents/tab_util.h"
13 #include "chrome/browser/ui/browser_dialogs.h" 13 #include "chrome/browser/ui/browser_dialogs.h"
14 #include "chrome/browser/ui/external_protocol_dialog_delegate.h" 14 #include "chrome/browser/ui/external_protocol_dialog_delegate.h"
15 #include "chrome/grit/generated_resources.h"
16 #include "components/constrained_window/constrained_window_views.h" 15 #include "components/constrained_window/constrained_window_views.h"
17 #include "content/public/browser/web_contents.h" 16 #include "content/public/browser/web_contents.h"
18 #include "ui/base/l10n/l10n_util.h" 17 #include "ui/base/l10n/l10n_util.h"
19 #include "ui/base/ui_features.h" 18 #include "ui/base/ui_features.h"
20 #include "ui/gfx/text_elider.h" 19 #include "ui/gfx/text_elider.h"
21 #include "ui/views/controls/message_box_view.h" 20 #include "ui/views/controls/message_box_view.h"
22 #include "ui/views/widget/widget.h" 21 #include "ui/views/widget/widget.h"
23 22
24 using content::WebContents; 23 using content::WebContents;
25 24
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 message_box_view_->SetCheckBoxLabel(delegate_->GetCheckboxText()); 150 message_box_view_->SetCheckBoxLabel(delegate_->GetCheckboxText());
152 151
153 WebContents* web_contents = tab_util::GetWebContentsByID( 152 WebContents* web_contents = tab_util::GetWebContentsByID(
154 render_process_host_id_, routing_id_); 153 render_process_host_id_, routing_id_);
155 // Only launch the dialog if there is a web contents associated with the 154 // Only launch the dialog if there is a web contents associated with the
156 // request. 155 // request.
157 if (web_contents) 156 if (web_contents)
158 constrained_window::ShowWebModalDialogViews(this, web_contents); 157 constrained_window::ShowWebModalDialogViews(this, web_contents);
159 chrome::RecordDialogCreation(chrome::DialogIdentifier::EXTERNAL_PROTOCOL); 158 chrome::RecordDialogCreation(chrome::DialogIdentifier::EXTERNAL_PROTOCOL);
160 } 159 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/download/download_shelf_view.cc ('k') | chrome/browser/ui/views/first_run_dialog.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698