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 "chrome/browser/shell_integration.h" |
6 | 6 |
7 #include <map> | 7 #include <map> |
8 | 8 |
9 #include "base/file_path.h" | 9 #include "base/file_path.h" |
10 #include "base/file_util.h" | 10 #include "base/file_util.h" |
11 #include "base/message_loop.h" | 11 #include "base/message_loop.h" |
12 #include "base/scoped_temp_dir.h" | 12 #include "base/scoped_temp_dir.h" |
13 #include "base/stl_util.h" | 13 #include "base/stl_util.h" |
14 #include "base/string_util.h" | 14 #include "base/string_util.h" |
15 #include "base/utf_string_conversions.h" | 15 #include "base/utf_string_conversions.h" |
16 #include "chrome/browser/web_applications/web_app.h" | 16 #include "chrome/browser/web_applications/web_app.h" |
17 #include "chrome/common/chrome_constants.h" | 17 #include "chrome/common/chrome_constants.h" |
18 #include "chrome/common/chrome_paths_internal.h" | 18 #include "chrome/common/chrome_paths_internal.h" |
19 #include "content/test/test_browser_thread.h" | 19 #include "content/public/test/test_browser_thread.h" |
20 #include "googleurl/src/gurl.h" | 20 #include "googleurl/src/gurl.h" |
21 #include "testing/gtest/include/gtest/gtest.h" | 21 #include "testing/gtest/include/gtest/gtest.h" |
22 | 22 |
23 #if defined(OS_WIN) | 23 #if defined(OS_WIN) |
24 #include "chrome/installer/util/browser_distribution.h" | 24 #include "chrome/installer/util/browser_distribution.h" |
25 #elif defined(OS_POSIX) && !defined(OS_MACOSX) | 25 #elif defined(OS_POSIX) && !defined(OS_MACOSX) |
26 #include "base/environment.h" | 26 #include "base/environment.h" |
27 #include "chrome/browser/shell_integration_linux.h" | 27 #include "chrome/browser/shell_integration_linux.h" |
28 #endif | 28 #endif |
29 | 29 |
(...skipping 352 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
382 // Non-default profile path should get chrome::kBrowserAppID joined with | 382 // Non-default profile path should get chrome::kBrowserAppID joined with |
383 // profile info. | 383 // profile info. |
384 FilePath profile_path(FILE_PATH_LITERAL("root")); | 384 FilePath profile_path(FILE_PATH_LITERAL("root")); |
385 profile_path = profile_path.Append(FILE_PATH_LITERAL("udd")); | 385 profile_path = profile_path.Append(FILE_PATH_LITERAL("udd")); |
386 profile_path = profile_path.Append(FILE_PATH_LITERAL("User Data - Test")); | 386 profile_path = profile_path.Append(FILE_PATH_LITERAL("User Data - Test")); |
387 EXPECT_EQ(BrowserDistribution::GetDistribution()->GetBrowserAppId() + | 387 EXPECT_EQ(BrowserDistribution::GetDistribution()->GetBrowserAppId() + |
388 L".udd.UserDataTest", | 388 L".udd.UserDataTest", |
389 ShellIntegration::GetChromiumAppId(profile_path)); | 389 ShellIntegration::GetChromiumAppId(profile_path)); |
390 } | 390 } |
391 #endif | 391 #endif |
OLD | NEW |