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

Unified Diff: chrome/browser/component_updater/pepper_flash_component_installer.cc

Issue 1233913005: Do not update pepper_flash component if there is not a newer version. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nits Created 5 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/component_updater/pepper_flash_component_installer.cc
diff --git a/chrome/browser/component_updater/pepper_flash_component_installer.cc b/chrome/browser/component_updater/pepper_flash_component_installer.cc
index 80138da9f5962b05a6984ac883eb93964a158066..2ebbb31854080d51bc574bc9aebdb89ad23aa79e 100644
--- a/chrome/browser/component_updater/pepper_flash_component_installer.cc
+++ b/chrome/browser/component_updater/pepper_flash_component_installer.cc
@@ -291,6 +291,14 @@ void StartPepperFlashUpdateRegistration(ComponentUpdateService* cus) {
}
}
+#if defined(FLAPPER_AVAILABLE)
+ // If a version of Flash is bundled with Chrome, and it's a higher version
+ // than the version of the component, or the component has never been updated,
+ // then set the bundled version as the current version.
+ if (version.CompareTo(Version(FLAPPER_VERSION_STRING)) < 0)
+ version = Version(FLAPPER_VERSION_STRING);
+#endif
+
BrowserThread::PostTask(
BrowserThread::UI,
FROM_HERE,
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698