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

Unified Diff: chrome/browser/gtk/external_protocol_dialog_gtk.cc

Issue 6017001: Move ElideString() from base/string_util.cc to app/text_elider.cc to ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 10 years 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/gtk/external_protocol_dialog_gtk.cc
===================================================================
--- chrome/browser/gtk/external_protocol_dialog_gtk.cc (revision 69274)
+++ chrome/browser/gtk/external_protocol_dialog_gtk.cc (working copy)
@@ -9,6 +9,7 @@
#include <string>
#include "app/l10n_util.h"
+#include "app/text_elider.h"
#include "base/metrics/histogram.h"
#include "base/message_loop.h"
#include "base/string_util.h"
@@ -62,9 +63,9 @@
const int kMaxCommandSize = 256;
std::wstring elided_url_without_scheme;
std::wstring elided_command;
- ElideString(ASCIIToWide(url.possibly_invalid_spec()),
+ gfx::ElideString(ASCIIToWide(url.possibly_invalid_spec()),
kMaxUrlWithoutSchemeSize, &elided_url_without_scheme);
- ElideString(ASCIIToWide(std::string("xdg-open ") + url.spec()),
+ gfx::ElideString(ASCIIToWide(std::string("xdg-open ") + url.spec()),
kMaxCommandSize, &elided_command);
std::string message_text = l10n_util::GetStringFUTF8(
« no previous file with comments | « chrome/browser/chromeos/external_protocol_dialog.cc ('k') | chrome/browser/tab_contents/navigation_entry.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698