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

Unified Diff: chrome/browser/extensions/menu_manager.cc

Issue 23731010: Move text_elider to gfx. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Update3 Created 7 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/download/download_item_model.cc ('k') | chrome/browser/signin/signin_ui_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/menu_manager.cc
diff --git a/chrome/browser/extensions/menu_manager.cc b/chrome/browser/extensions/menu_manager.cc
index 6b0303d139c118c09afa03f7eaec107850328f56..d1ef97589b3b48f15dc660e8c11c09a1774490d5 100644
--- a/chrome/browser/extensions/menu_manager.cc
+++ b/chrome/browser/extensions/menu_manager.cc
@@ -28,8 +28,8 @@
#include "content/public/browser/notification_source.h"
#include "content/public/browser/web_contents.h"
#include "content/public/common/context_menu_params.h"
-#include "ui/base/text/text_elider.h"
#include "ui/gfx/favicon_size.h"
+#include "ui/gfx/text_elider.h"
using content::WebContents;
using extensions::ExtensionSystem;
@@ -173,7 +173,7 @@ string16 MenuItem::TitleWithReplacement(
ReplaceSubstringsAfterOffset(&result, 0, ASCIIToUTF16("%s"), selection);
if (result.length() > max_length)
- result = ui::TruncateString(result, max_length);
+ result = gfx::TruncateString(result, max_length);
return result;
}
« no previous file with comments | « chrome/browser/download/download_item_model.cc ('k') | chrome/browser/signin/signin_ui_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698