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

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

Issue 2751773002: Add Google Play services info to chrome://version (Closed)
Patch Set: fix indentation Created 3 years, 9 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
OLDNEW
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/version_ui.h" 5 #include "chrome/browser/ui/webui/version_ui.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/i18n/message_formatter.h" 8 #include "base/i18n/message_formatter.h"
9 #include "base/memory/ptr_util.h" 9 #include "base/memory/ptr_util.h"
10 #include "base/time/time.h" 10 #include "base/time/time.h"
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 html_source->AddLocalizedString(version_ui::kFirmwareVersion, 96 html_source->AddLocalizedString(version_ui::kFirmwareVersion,
97 IDS_VERSION_UI_FIRMWARE_VERSION); 97 IDS_VERSION_UI_FIRMWARE_VERSION);
98 #else 98 #else
99 html_source->AddLocalizedString(version_ui::kOSName, IDS_VERSION_UI_OS); 99 html_source->AddLocalizedString(version_ui::kOSName, IDS_VERSION_UI_OS);
100 html_source->AddString(version_ui::kOSType, version_info::GetOSType()); 100 html_source->AddString(version_ui::kOSType, version_info::GetOSType());
101 #endif // OS_CHROMEOS 101 #endif // OS_CHROMEOS
102 102
103 #if defined(OS_ANDROID) 103 #if defined(OS_ANDROID)
104 html_source->AddString(version_ui::kOSVersion, 104 html_source->AddString(version_ui::kOSVersion,
105 AndroidAboutAppInfo::GetOsInfo()); 105 AndroidAboutAppInfo::GetOsInfo());
106 html_source->AddLocalizedString(version_ui::kGmsName, IDS_VERSION_UI_GMS);
107 html_source->AddString(version_ui::kGmsVersion,
108 AndroidAboutAppInfo::GetGmsInfo());
106 #else 109 #else
107 html_source->AddString(version_ui::kFlashPlugin, "Flash"); 110 html_source->AddString(version_ui::kFlashPlugin, "Flash");
108 // Note that the Flash version is retrieve asynchronously and returned in 111 // Note that the Flash version is retrieve asynchronously and returned in
109 // VersionHandler::OnGotPlugins. The area is initially blank. 112 // VersionHandler::OnGotPlugins. The area is initially blank.
110 html_source->AddString(version_ui::kFlashVersion, std::string()); 113 html_source->AddString(version_ui::kFlashVersion, std::string());
111 #endif // OS_ANDROID 114 #endif // OS_ANDROID
112 115
113 #if defined(ARCH_CPU_64_BITS) 116 #if defined(ARCH_CPU_64_BITS)
114 html_source->AddLocalizedString(version_ui::kVersionBitSize, 117 html_source->AddLocalizedString(version_ui::kVersionBitSize,
115 IDS_VERSION_UI_64BIT); 118 IDS_VERSION_UI_64BIT);
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
179 // Set up the chrome://theme/ source. 182 // Set up the chrome://theme/ source.
180 ThemeSource* theme = new ThemeSource(profile); 183 ThemeSource* theme = new ThemeSource(profile);
181 content::URLDataSource::Add(profile, theme); 184 content::URLDataSource::Add(profile, theme);
182 #endif 185 #endif
183 186
184 WebUIDataSource::Add(profile, CreateVersionUIDataSource()); 187 WebUIDataSource::Add(profile, CreateVersionUIDataSource());
185 } 188 }
186 189
187 VersionUI::~VersionUI() { 190 VersionUI::~VersionUI() {
188 } 191 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/android/android_about_app_info.cc ('k') | components/version_ui/resources/about_version.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698