| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/shell_integration.h" | 5 #include "apps/shell_integration.h" |
| 6 | 6 |
| 7 #include <vector> | 7 #include <vector> |
| 8 | 8 |
| 9 #include "base/file_util.h" | 9 #include "base/file_util.h" |
| 10 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
| 11 #include "base/files/scoped_temp_dir.h" | 11 #include "base/files/scoped_temp_dir.h" |
| 12 #include "base/strings/string_number_conversions.h" | 12 #include "base/strings/string_number_conversions.h" |
| 13 #include "base/test/test_shortcut_win.h" | 13 #include "base/test/test_shortcut_win.h" |
| 14 #include "base/win/scoped_com_initializer.h" | 14 #include "base/win/scoped_com_initializer.h" |
| 15 #include "base/win/windows_version.h" | 15 #include "base/win/windows_version.h" |
| (...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 215 default_profile_path)); | 215 default_profile_path)); |
| 216 | 216 |
| 217 // Non-default profile path should get chrome::kBrowserAppID + AppList joined | 217 // Non-default profile path should get chrome::kBrowserAppID + AppList joined |
| 218 // with profile info. | 218 // with profile info. |
| 219 base::FilePath profile_path(FILE_PATH_LITERAL("root")); | 219 base::FilePath profile_path(FILE_PATH_LITERAL("root")); |
| 220 profile_path = profile_path.Append(FILE_PATH_LITERAL("udd")); | 220 profile_path = profile_path.Append(FILE_PATH_LITERAL("udd")); |
| 221 profile_path = profile_path.Append(FILE_PATH_LITERAL("User Data - Test")); | 221 profile_path = profile_path.Append(FILE_PATH_LITERAL("User Data - Test")); |
| 222 EXPECT_EQ(base_app_id + L".udd.UserDataTest", | 222 EXPECT_EQ(base_app_id + L".udd.UserDataTest", |
| 223 ShellIntegration::GetAppListAppModelIdForProfile(profile_path)); | 223 ShellIntegration::GetAppListAppModelIdForProfile(profile_path)); |
| 224 } | 224 } |
| OLD | NEW |