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/web_applications/web_app.h" | 5 #include "chrome/browser/web_applications/web_app.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 |
7 #include "base/bind.h" | 9 #include "base/bind.h" |
8 #include "base/bind_helpers.h" | 10 #include "base/bind_helpers.h" |
9 #include "base/command_line.h" | 11 #include "base/command_line.h" |
10 #include "base/files/file_util.h" | 12 #include "base/files/file_util.h" |
11 #include "base/i18n/file_util_icu.h" | 13 #include "base/i18n/file_util_icu.h" |
| 14 #include "base/macros.h" |
12 #include "base/prefs/pref_service.h" | 15 #include "base/prefs/pref_service.h" |
13 #include "base/strings/string_util.h" | 16 #include "base/strings/string_util.h" |
14 #include "base/strings/utf_string_conversions.h" | 17 #include "base/strings/utf_string_conversions.h" |
15 #include "base/threading/thread.h" | 18 #include "base/threading/thread.h" |
| 19 #include "build/build_config.h" |
16 #include "chrome/browser/browser_process.h" | 20 #include "chrome/browser/browser_process.h" |
17 #include "chrome/browser/extensions/extension_ui_util.h" | 21 #include "chrome/browser/extensions/extension_ui_util.h" |
18 #include "chrome/browser/profiles/profile.h" | 22 #include "chrome/browser/profiles/profile.h" |
19 #include "chrome/browser/profiles/profile_manager.h" | 23 #include "chrome/browser/profiles/profile_manager.h" |
20 #include "chrome/common/chrome_constants.h" | 24 #include "chrome/common/chrome_constants.h" |
21 #include "chrome/common/chrome_switches.h" | 25 #include "chrome/common/chrome_switches.h" |
22 #include "chrome/common/extensions/manifest_handlers/app_launch_info.h" | 26 #include "chrome/common/extensions/manifest_handlers/app_launch_info.h" |
23 #include "chrome/common/pref_names.h" | 27 #include "chrome/common/pref_names.h" |
24 #include "content/public/browser/browser_thread.h" | 28 #include "content/public/browser/browser_thread.h" |
25 #include "extensions/browser/extension_registry.h" | 29 #include "extensions/browser/extension_registry.h" |
(...skipping 464 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
490 | 494 |
491 #if defined(OS_LINUX) | 495 #if defined(OS_LINUX) |
492 std::string GetWMClassFromAppName(std::string app_name) { | 496 std::string GetWMClassFromAppName(std::string app_name) { |
493 base::i18n::ReplaceIllegalCharactersInPath(&app_name, '_'); | 497 base::i18n::ReplaceIllegalCharactersInPath(&app_name, '_'); |
494 base::TrimString(app_name, "_", &app_name); | 498 base::TrimString(app_name, "_", &app_name); |
495 return app_name; | 499 return app_name; |
496 } | 500 } |
497 #endif | 501 #endif |
498 | 502 |
499 } // namespace web_app | 503 } // namespace web_app |
OLD | NEW |