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

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

Issue 15949029: Use a direct include of utf_string_conversions.h in chrome/browser/ui/, part 2. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 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 | 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/string_util.h" 8 #include "base/string_util.h"
9 #include "base/strings/utf_string_conversions.h"
9 #include "base/threading/thread.h" 10 #include "base/threading/thread.h"
10 #include "base/threading/thread_restrictions.h" 11 #include "base/threading/thread_restrictions.h"
11 #include "base/utf_string_conversions.h"
12 #include "base/win/registry.h" 12 #include "base/win/registry.h"
13 #include "chrome/browser/external_protocol/external_protocol_handler.h" 13 #include "chrome/browser/external_protocol/external_protocol_handler.h"
14 #include "chrome/browser/tab_contents/tab_util.h" 14 #include "chrome/browser/tab_contents/tab_util.h"
15 #include "content/public/browser/web_contents.h" 15 #include "content/public/browser/web_contents.h"
16 #include "content/public/browser/web_contents_view.h" 16 #include "content/public/browser/web_contents_view.h"
17 #include "grit/chromium_strings.h" 17 #include "grit/chromium_strings.h"
18 #include "grit/generated_resources.h" 18 #include "grit/generated_resources.h"
19 #include "ui/base/l10n/l10n_util.h" 19 #include "ui/base/l10n/l10n_util.h"
20 #include "ui/base/text/text_elider.h" 20 #include "ui/base/text/text_elider.h"
21 #include "ui/views/controls/message_box_view.h" 21 #include "ui/views/controls/message_box_view.h"
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 std::wstring parameters = url_spec.substr(split_offset + 1, 181 std::wstring parameters = url_spec.substr(split_offset + 1,
182 url_spec.length() - 1); 182 url_spec.length() - 1);
183 std::wstring application_to_launch; 183 std::wstring application_to_launch;
184 if (cmd_key.ReadValue(NULL, &application_to_launch) == ERROR_SUCCESS) { 184 if (cmd_key.ReadValue(NULL, &application_to_launch) == ERROR_SUCCESS) {
185 ReplaceSubstringsAfterOffset(&application_to_launch, 0, L"%1", parameters); 185 ReplaceSubstringsAfterOffset(&application_to_launch, 0, L"%1", parameters);
186 return application_to_launch; 186 return application_to_launch;
187 } else { 187 } else {
188 return std::wstring(); 188 return std::wstring();
189 } 189 }
190 } 190 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/extensions/shell_window_frame_view.cc ('k') | chrome/browser/ui/views/external_tab_container_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698