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

Unified Diff: components/version_ui/resources/about_version.js

Issue 2041603002: [ios Mojo] Implemented chrome://version. Base URL: https://chromium.googlesource.com/chromium/src.git@mojo_version
Patch Set: Self review Created 4 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: components/version_ui/resources/about_version.js
diff --git a/components/version_ui/resources/about_version.js b/components/version_ui/resources/about_version.js
index 20730b7cd2fd891cd1b6f84fd2dfd3defe40b86c..9671f753101d38f24e0fa41928fe54d98504468b 100644
--- a/components/version_ui/resources/about_version.js
+++ b/components/version_ui/resources/about_version.js
@@ -33,17 +33,19 @@ function main() {
whenDomContentLoaded(), getUiHandler()
]).then(function(results) {
var uiHandler = results[1];
- uiHandler.getFilePaths().then(function(response) {
- $('executable_path').textContent = response.execPath;
- $('profile_path').textContent = response.profilePath;
- });
+ if (!cr.isIOS) {
+ uiHandler.getFilePaths().then(function(response) {
+ $('executable_path').textContent = response.execPath;
+ $('profile_path').textContent = response.profilePath;
+ });
+ }
uiHandler.getVariations().then(function(response) {
$('variations-section').hidden = response.variations.length == 0;
$('variations-list').appendChild(
parseHtmlSubset(response.variations.join('<br>'), ['BR']));
});
- if (!cr.isAndroid) {
+ if (!cr.isAndroid && !cr.isIOS) {
uiHandler.getFlashVersion().then(function(response) {
$('flash_version').textContent = response.flashVersion;
});
« no previous file with comments | « components/resources/version_ui_resources.grdp ('k') | components/version_ui/resources/about_version_ios.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698