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

Unified Diff: trunk/src/chrome/installer/util/google_update_util.h

Issue 422593002: Revert 285661 "Remove some dead app host code." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 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: trunk/src/chrome/installer/util/google_update_util.h
===================================================================
--- trunk/src/chrome/installer/util/google_update_util.h (revision 285705)
+++ trunk/src/chrome/installer/util/google_update_util.h (working copy)
@@ -5,6 +5,8 @@
#ifndef CHROME_INSTALLER_UTIL_GOOGLE_UPDATE_UTIL_H_
#define CHROME_INSTALLER_UTIL_GOOGLE_UPDATE_UTIL_H_
+#include <string>
+
namespace google_update {
// If user-level Google Update is absent, calls the system-level
@@ -25,6 +27,18 @@
// GoogleUpdateSettings::ReenableAutoupdatesForApp() to do the work.
void ElevateIfNeededToReenableUpdates();
+// Returns the value corresponding to |key| in untrusted data passed from
+// Google Update. Returns an empty string if |key| is absent or if its value
+// contains non-printable characters.
+std::string GetUntrustedDataValue(const std::string& key);
+
+// Returns the value corresponding to |key| in untrusted data passed from
+// |tag|. |tag| should be a printable list of key-value pairs, e.g.
+// "key1=value1&key2=value2". Returns an empty string if |key| is absent or if
+// its value contains non-printable characters.
+std::string GetUntrustedDataValueFromTag(const std::string& tag,
+ const std::string& key);
+
} // namespace google_update
#endif // CHROME_INSTALLER_UTIL_GOOGLE_UPDATE_UTIL_H_
« no previous file with comments | « trunk/src/chrome/installer/util/chrome_app_host_distribution.cc ('k') | trunk/src/chrome/installer/util/google_update_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698