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

Unified Diff: chrome/browser/chromeos/arc/accessibility/arc_accessibility_helper_bridge.cc

Issue 2889523003: Add kApplicationIdKey for ShellSurface::GetApplicationId and SetApplicationId (Closed)
Patch Set: Fix shell_surface_unittest. Created 3 years, 7 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 | chrome/browser/ui/ash/launcher/arc_app_window_launcher_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/arc/accessibility/arc_accessibility_helper_bridge.cc
diff --git a/chrome/browser/chromeos/arc/accessibility/arc_accessibility_helper_bridge.cc b/chrome/browser/chromeos/arc/accessibility/arc_accessibility_helper_bridge.cc
index c5653f2ad2f0e88fee844af31d63f490bcf0772e..8a6b0d992df535468c08df42d53b4d42ef7198a6 100644
--- a/chrome/browser/chromeos/arc/accessibility/arc_accessibility_helper_bridge.cc
+++ b/chrome/browser/chromeos/arc/accessibility/arc_accessibility_helper_bridge.cc
@@ -32,12 +32,12 @@ exo::Surface* GetArcSurface(const aura::Window* window) {
}
int32_t GetTaskId(aura::Window* window) {
- const std::string arc_app_id = exo::ShellSurface::GetApplicationId(window);
- if (arc_app_id.empty())
+ const std::string* arc_app_id = exo::ShellSurface::GetApplicationId(window);
+ if (!arc_app_id)
return kNoTaskId;
int32_t task_id = kNoTaskId;
- if (sscanf(arc_app_id.c_str(), "org.chromium.arc.%d", &task_id) != 1)
+ if (sscanf(arc_app_id->c_str(), "org.chromium.arc.%d", &task_id) != 1)
return kNoTaskId;
return task_id;
« no previous file with comments | « no previous file | chrome/browser/ui/ash/launcher/arc_app_window_launcher_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698