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

Unified Diff: ash/common/system/tray/ime_info.cc

Issue 2271483003: Updates the IME list when the IME has refreshed. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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: ash/common/system/tray/ime_info.cc
diff --git a/ash/common/system/tray/ime_info.cc b/ash/common/system/tray/ime_info.cc
index fc1966d6e2d17808cced3fe4de0967daf3c06ba6..ca03f2a4d501679ced20a98bdaa56d24b293397e 100644
--- a/ash/common/system/tray/ime_info.cc
+++ b/ash/common/system/tray/ime_info.cc
@@ -4,10 +4,26 @@
#include "ash/common/system/tray/ime_info.h"
+#include "base/strings/utf_string_conversions.h"
+
namespace ash {
IMEInfo::IMEInfo() : selected(false), third_party(false) {}
+IMEInfo::IMEInfo(bool selected,
+ bool third_party,
+ const std::string& id,
+ const std::string& name,
+ const std::string& medium_name,
+ const std::string& short_name) {
+ this->selected = selected;
+ this->third_party = third_party;
+ this->id = id;
+ this->name = base::UTF8ToUTF16(name);
+ this->medium_name = base::UTF8ToUTF16(medium_name);
+ this->short_name = base::UTF8ToUTF16(short_name);
+}
+
IMEInfo::IMEInfo(const IMEInfo& other) = default;
IMEInfo::~IMEInfo() {}

Powered by Google App Engine
This is Rietveld 408576698