Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(16)

Side by Side Diff: chrome/browser/ui/webui/version_handler_chromeos.cc

Issue 10916182: Refactor the about:version code out of about_ui. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: rebase + lei nit Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "chrome/browser/ui/webui/version_handler_chromeos.h"
6
7 #include "content/public/browser/web_ui.h"
8
9 VersionHandlerChromeOS::VersionHandlerChromeOS() {
10 }
11
12 VersionHandlerChromeOS::~VersionHandlerChromeOS() {
13 }
14
15 void VersionHandlerChromeOS::HandleRequestVersionInfo(const ListValue* args) {
16 // Start the asynchronous load of the version.
17 loader_.GetVersion(&consumer_,
18 base::Bind(&VersionHandlerChromeOS::OnVersion,
19 base::Unretained(this)),
20 chromeos::VersionLoader::VERSION_FULL);
21
22 // Parent class takes care of the rest.
23 VersionHandler::HandleRequestVersionInfo(args);
24 }
25
26 void VersionHandlerChromeOS::OnVersion(chromeos::VersionLoader::Handle handle,
27 const std::string& version) {
28 StringValue arg(version);
29 web_ui()->CallJavascriptFunction("returnOsVersion", arg);
30 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/version_handler_chromeos.h ('k') | chrome/browser/ui/webui/version_ui.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698