OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chrome/browser/ui/ash/launcher/chrome_launcher_controller.h" | 5 #include "chrome/browser/ui/ash/launcher/chrome_launcher_controller.h" |
6 | 6 |
7 #include "apps/shell_window.h" | 7 #include "apps/shell_window.h" |
8 #include "apps/shell_window_registry.h" | 8 #include "apps/shell_window_registry.h" |
9 #include "base/path_service.h" | 9 #include "base/path_service.h" |
10 #include "base/strings/string16.h" | 10 #include "base/strings/string16.h" |
(...skipping 26 matching lines...) Expand all Loading... |
37 return false; | 37 return false; |
38 } | 38 } |
39 | 39 |
40 // Construct parameters for ShellExecuteEx that mimic a desktop shortcut | 40 // Construct parameters for ShellExecuteEx that mimic a desktop shortcut |
41 // for the app in the current Profile. | 41 // for the app in the current Profile. |
42 std::string spec = base::StringPrintf("\"--%s=%s\" \"--%s=%s\"", | 42 std::string spec = base::StringPrintf("\"--%s=%s\" \"--%s=%s\"", |
43 switches::kProfileDirectory, | 43 switches::kProfileDirectory, |
44 profile_->GetPath().BaseName().AsUTF8Unsafe().c_str(), | 44 profile_->GetPath().BaseName().AsUTF8Unsafe().c_str(), |
45 switches::kAppId, | 45 switches::kAppId, |
46 app_id.c_str()); | 46 app_id.c_str()); |
47 aura::RemoteRootWindowHostWin::Instance()->HandleOpenURLOnDesktop( | 47 aura::RemoteWindowTreeHostWin::Instance()->HandleOpenURLOnDesktop( |
48 exe_path, base::UTF8ToUTF16(spec)); | 48 exe_path, base::UTF8ToUTF16(spec)); |
49 return true; | 49 return true; |
50 } | 50 } |
OLD | NEW |