OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/dom_ui/options/about_page_handler.h" | 5 #include "chrome/browser/dom_ui/options/about_page_handler.h" |
6 | 6 |
7 #include <vector> | 7 #include <vector> |
8 | 8 |
9 #include "app/l10n_util.h" | 9 #include "app/l10n_util.h" |
10 #include "app/resource_bundle.h" | 10 #include "app/resource_bundle.h" |
11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
12 #include "base/callback.h" | 12 #include "base/callback.h" |
13 #include "base/command_line.h" | 13 #include "base/command_line.h" |
14 #include "base/i18n/time_formatting.h" | 14 #include "base/i18n/time_formatting.h" |
15 #include "base/string16.h" | 15 #include "base/string16.h" |
16 #include "base/string_number_conversions.h" | 16 #include "base/string_number_conversions.h" |
17 #include "base/time.h" | 17 #include "base/time.h" |
18 #include "base/utf_string_conversions.h" | 18 #include "base/utf_string_conversions.h" |
19 #include "base/values.h" | 19 #include "base/values.h" |
20 #include "chrome/browser/platform_util.h" | 20 #include "chrome/browser/platform_util.h" |
21 #include "chrome/common/chrome_version_info.h" | 21 #include "chrome/common/chrome_version_info.h" |
22 #include "chrome/common/notification_service.h" | |
23 #include "chrome/common/url_constants.h" | 22 #include "chrome/common/url_constants.h" |
24 #include "googleurl/src/gurl.h" | 23 #include "googleurl/src/gurl.h" |
25 #include "grit/browser_resources.h" | 24 #include "grit/browser_resources.h" |
26 #include "grit/chromium_strings.h" | 25 #include "grit/chromium_strings.h" |
27 #include "grit/generated_resources.h" | 26 #include "grit/generated_resources.h" |
28 #include "grit/locale_settings.h" | 27 #include "grit/locale_settings.h" |
29 #include "grit/theme_resources.h" | 28 #include "grit/theme_resources.h" |
30 #include "webkit/glue/webkit_glue.h" | 29 #include "webkit/glue/webkit_glue.h" |
31 | 30 |
32 #if defined(CHROME_V8) | 31 #if defined(CHROME_V8) |
(...skipping 360 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
393 | 392 |
394 void AboutPageHandler::OnOSVersion(chromeos::VersionLoader::Handle handle, | 393 void AboutPageHandler::OnOSVersion(chromeos::VersionLoader::Handle handle, |
395 std::string version) { | 394 std::string version) { |
396 if (version.size()) { | 395 if (version.size()) { |
397 scoped_ptr<Value> version_string(Value::CreateStringValue(version)); | 396 scoped_ptr<Value> version_string(Value::CreateStringValue(version)); |
398 dom_ui_->CallJavascriptFunction(L"AboutPage.updateOSVersionCallback", | 397 dom_ui_->CallJavascriptFunction(L"AboutPage.updateOSVersionCallback", |
399 *version_string); | 398 *version_string); |
400 } | 399 } |
401 } | 400 } |
402 #endif | 401 #endif |
OLD | NEW |