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

Unified Diff: chrome/browser/extensions/api/app/app_api.cc

Issue 10543070: Remove #if from platform app launch code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/api/app/app_api.cc
diff --git a/chrome/browser/extensions/api/app/app_api.cc b/chrome/browser/extensions/api/app/app_api.cc
index 3b74ab0b169df1064455e3bd281c71e8d006c331..94f421ba26e24967be3df10d5d9acf954991a7f4 100644
--- a/chrome/browser/extensions/api/app/app_api.cc
+++ b/chrome/browser/extensions/api/app/app_api.cc
@@ -135,11 +135,7 @@ void AppEventRouter::DispatchOnLaunchedEventWithFileEntry(
intent->SetString("type", "chrome-extension://fileentry");
args.Append(launch_data);
args.Append(Value::CreateStringValue(file_system_id));
-#if defined(OS_WIN)
- args.Append(Value::CreateStringValue(UTF16ToUTF8(base_name.value())));
-#else
- args.Append(Value::CreateStringValue(base_name.value()));
-#endif
+ args.Append(Value::CreateStringValue(base_name.AsUTF8Unsafe()));
std::string json_args;
base::JSONWriter::Write(&args, &json_args);
profile->GetExtensionEventRouter()->DispatchEventToExtension(
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698