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

Unified Diff: chrome/browser/ui/ash/launcher/chrome_launcher_controller_mus.cc

Issue 2750463009: mash: Fix ShelfItem mojo struct; add enums and traits. (Closed)
Patch Set: Address comment. Created 3 years, 9 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
Index: chrome/browser/ui/ash/launcher/chrome_launcher_controller_mus.cc
diff --git a/chrome/browser/ui/ash/launcher/chrome_launcher_controller_mus.cc b/chrome/browser/ui/ash/launcher/chrome_launcher_controller_mus.cc
index fa9123c838be034f27fdee6716383e8bd56155bf..ea06a2c013eb8913df2e7b3445ece38ab3b69519 100644
--- a/chrome/browser/ui/ash/launcher/chrome_launcher_controller_mus.cc
+++ b/chrome/browser/ui/ash/launcher/chrome_launcher_controller_mus.cc
@@ -5,7 +5,6 @@
#include "chrome/browser/ui/ash/launcher/chrome_launcher_controller_mus.h"
#include "base/strings/string_util.h"
-#include "base/strings/utf_string_conversions.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/profiles/profile_manager.h"
#include "chrome/browser/ui/ash/app_launcher_id.h"
@@ -245,8 +244,7 @@ void ChromeLauncherControllerMus::PinAppsFromPrefs() {
ash::mojom::ShelfItemPtr item(ash::mojom::ShelfItem::New());
item->app_id = app_id;
- item->app_title = base::UTF16ToUTF8(
- launcher_controller_helper()->GetAppTitle(profile(), app_id));
+ item->title = launcher_controller_helper()->GetAppTitle(profile(), app_id);
ResourceBundle& rb = ResourceBundle::GetSharedInstance();
const gfx::Image& image = rb.GetImageNamed(IDR_APP_DEFAULT_ICON);
item->image = *image.ToSkBitmap();

Powered by Google App Engine
This is Rietveld 408576698