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/ui/webui/help/help_handler.h" | 5 #include "chrome/browser/ui/webui/help/help_handler.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
(...skipping 17 matching lines...) Expand all Loading... |
28 #include "content/public/browser/notification_service.h" | 28 #include "content/public/browser/notification_service.h" |
29 #include "content/public/browser/web_ui.h" | 29 #include "content/public/browser/web_ui.h" |
30 #include "content/public/browser/web_ui_data_source.h" | 30 #include "content/public/browser/web_ui_data_source.h" |
31 #include "content/public/common/content_client.h" | 31 #include "content/public/common/content_client.h" |
32 #include "grit/chromium_strings.h" | 32 #include "grit/chromium_strings.h" |
33 #include "grit/generated_resources.h" | 33 #include "grit/generated_resources.h" |
34 #include "grit/google_chrome_strings.h" | 34 #include "grit/google_chrome_strings.h" |
35 #include "ui/base/l10n/l10n_util.h" | 35 #include "ui/base/l10n/l10n_util.h" |
36 #include "ui/base/resource/resource_bundle.h" | 36 #include "ui/base/resource/resource_bundle.h" |
37 #include "v8/include/v8.h" | 37 #include "v8/include/v8.h" |
| 38 #include "webkit/common/user_agent/user_agent_util.h" |
38 #include "webkit/glue/webkit_glue.h" | 39 #include "webkit/glue/webkit_glue.h" |
39 #include "webkit/user_agent/user_agent_util.h" | |
40 | 40 |
41 #if defined(OS_CHROMEOS) | 41 #if defined(OS_CHROMEOS) |
42 #include "base/files/file_util_proxy.h" | 42 #include "base/files/file_util_proxy.h" |
43 #include "base/i18n/time_formatting.h" | 43 #include "base/i18n/time_formatting.h" |
44 #include "base/prefs/pref_service.h" | 44 #include "base/prefs/pref_service.h" |
45 #include "base/sys_info.h" | 45 #include "base/sys_info.h" |
46 #include "chrome/browser/chromeos/login/user_manager.h" | 46 #include "chrome/browser/chromeos/login/user_manager.h" |
47 #include "chrome/browser/chromeos/settings/cros_settings.h" | 47 #include "chrome/browser/chromeos/settings/cros_settings.h" |
48 #include "chrome/browser/profiles/profile.h" | 48 #include "chrome/browser/profiles/profile.h" |
49 #include "content/public/browser/browser_thread.h" | 49 #include "content/public/browser/browser_thread.h" |
(...skipping 397 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
447 | 447 |
448 // Note that this string will be internationalized. | 448 // Note that this string will be internationalized. |
449 string16 build_date = base::TimeFormatFriendlyDate(time); | 449 string16 build_date = base::TimeFormatFriendlyDate(time); |
450 g_build_date_string = Value::CreateStringValue(build_date); | 450 g_build_date_string = Value::CreateStringValue(build_date); |
451 } | 451 } |
452 | 452 |
453 web_ui()->CallJavascriptFunction("help.HelpPage.setBuildDate", | 453 web_ui()->CallJavascriptFunction("help.HelpPage.setBuildDate", |
454 *g_build_date_string); | 454 *g_build_date_string); |
455 } | 455 } |
456 #endif // defined(OS_CHROMEOS) | 456 #endif // defined(OS_CHROMEOS) |
OLD | NEW |