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

Unified Diff: chrome/common/chrome_paths.cc

Issue 1261333004: Add support for Flash Player Component updates on Linux (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix up bauerb's final few comments. Created 5 years, 4 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: chrome/common/chrome_paths.cc
diff --git a/chrome/common/chrome_paths.cc b/chrome/common/chrome_paths.cc
index 74bf04137c64c111ffe84c8d26aa9a4500b72a31..0da194d8720e82183e552d10db402e5f3efeac15 100644
--- a/chrome/common/chrome_paths.cc
+++ b/chrome/common/chrome_paths.cc
@@ -60,6 +60,11 @@ const base::FilePath::CharType kFilepathSinglePrefExtensions[] =
#else
FILE_PATH_LITERAL("/usr/share/chromium/extensions");
#endif // defined(GOOGLE_CHROME_BUILD)
+
+// The path to the hint file that tells the pepper plugin loader
+// where it can find the latest component updated flash.
+const base::FilePath::CharType kComponentUpdatedFlashHint[] =
+ FILE_PATH_LITERAL("latest-component-updated-flash");
#endif // defined(OS_LINUX)
static base::LazyInstance<base::FilePath>
@@ -566,6 +571,14 @@ bool PathProvider(int key, base::FilePath* result) {
cur = cur.Append(kOfflinePageMetadataDirname);
break;
#endif // defined(OS_ANDROID)
+#if defined(OS_LINUX)
+ case chrome::FILE_COMPONENT_FLASH_HINT:
+ if (!PathService::Get(chrome::DIR_COMPONENT_UPDATED_PEPPER_FLASH_PLUGIN,
+ &cur))
Lei Zhang 2015/08/14 22:37:07 add braces
Greg K 2015/08/17 21:11:57 Done.
+ return false;
+ cur = cur.Append(kComponentUpdatedFlashHint);
+ break;
+#endif // defined(OS_LINUX)
default:
return false;

Powered by Google App Engine
This is Rietveld 408576698