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

Side by Side Diff: chrome/browser/ui/external_protocol_dialog_delegate.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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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/external_protocol_dialog_delegate.h" 5 #include "chrome/browser/ui/external_protocol_dialog_delegate.h"
6 6
7 #include "chrome/browser/external_protocol/external_protocol_handler.h" 7 #include "chrome/browser/external_protocol/external_protocol_handler.h"
8 #include "chrome/browser/profiles/profile.h" 8 #include "chrome/browser/profiles/profile.h"
9 #include "chrome/browser/tab_contents/tab_util.h" 9 #include "chrome/browser/tab_contents/tab_util.h"
10 #include "chrome/grit/chromium_strings.h" 10 #include "chrome/grit/chromium_strings.h"
11 #include "chrome/grit/generated_resources.h" 11 #include "chrome/grit/generated_resources.h"
12 #include "components/strings/grit/components_strings.h"
13 #include "ui/base/l10n/l10n_util.h" 12 #include "ui/base/l10n/l10n_util.h"
14 #include "ui/gfx/text_elider.h" 13 #include "ui/gfx/text_elider.h"
15 14
16 namespace { 15 namespace {
17 16
18 const size_t kMaxCommandSize = 32; 17 const size_t kMaxCommandSize = 32;
19 18
20 base::string16 ElideCommandName(const base::string16& command_name) { 19 base::string16 ElideCommandName(const base::string16& command_name) {
21 base::string16 elided_command; 20 base::string16 elided_command;
22 gfx::ElideString(command_name, kMaxCommandSize, &elided_command); 21 gfx::ElideString(command_name, kMaxCommandSize, &elided_command);
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 if (dont_block) { 80 if (dont_block) {
82 content::WebContents* web_contents = tab_util::GetWebContentsByID( 81 content::WebContents* web_contents = tab_util::GetWebContentsByID(
83 render_process_host_id_, render_view_routing_id_); 82 render_process_host_id_, render_view_routing_id_);
84 Profile* profile = 83 Profile* profile =
85 Profile::FromBrowserContext(web_contents->GetBrowserContext()); 84 Profile::FromBrowserContext(web_contents->GetBrowserContext());
86 85
87 ExternalProtocolHandler::SetBlockState( 86 ExternalProtocolHandler::SetBlockState(
88 url.scheme(), ExternalProtocolHandler::BLOCK, profile); 87 url.scheme(), ExternalProtocolHandler::BLOCK, profile);
89 } 88 }
90 } 89 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/extensions/extension_message_bubble_bridge_unittest.cc ('k') | chrome/browser/ui/hung_plugin_tab_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698