OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "base/callback.h" | 10 #include "base/callback.h" |
(...skipping 399 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
410 | 410 |
411 void AboutPageHandler::OnOSVersion(chromeos::VersionLoader::Handle handle, | 411 void AboutPageHandler::OnOSVersion(chromeos::VersionLoader::Handle handle, |
412 std::string version) { | 412 std::string version) { |
413 if (version.size()) { | 413 if (version.size()) { |
414 scoped_ptr<Value> version_string(Value::CreateStringValue(version)); | 414 scoped_ptr<Value> version_string(Value::CreateStringValue(version)); |
415 web_ui_->CallJavascriptFunction(L"AboutPage.updateOSVersionCallback", | 415 web_ui_->CallJavascriptFunction(L"AboutPage.updateOSVersionCallback", |
416 *version_string); | 416 *version_string); |
417 } | 417 } |
418 } | 418 } |
419 #endif | 419 #endif |
OLD | NEW |