| Index: chrome/install_static/install_util.h
|
| diff --git a/chrome/install_static/install_util.h b/chrome/install_static/install_util.h
|
| index 3d57b238787130366ee15c3181fcb6b2018f8f07..0f0bed44031f4f7c8310962259c66837bb828a87 100644
|
| --- a/chrome/install_static/install_util.h
|
| +++ b/chrome/install_static/install_util.h
|
| @@ -12,8 +12,6 @@
|
| #include <string>
|
| #include <vector>
|
|
|
| -#include "base/strings/string16.h"
|
| -
|
| namespace install_static {
|
|
|
| enum class ProcessType {
|
| @@ -76,7 +74,7 @@ bool GetCollectStatsConsent();
|
| // Returns true if usage stats collecting is enabled for this user for the
|
| // executable passed in as |exe_path|.
|
| // Only used by tests.
|
| -bool GetCollectStatsConsentForTesting(const base::string16& exe_path);
|
| +bool GetCollectStatsConsentForTesting(const std::wstring& exe_path);
|
|
|
| // Returns true if if usage stats reporting is controlled by a mandatory
|
| // policy. |metrics_is_enforced_by_policy| will be set to true accordingly.
|
| @@ -98,32 +96,32 @@ bool IsNonBrowserProcess();
|
| // TODO(ananta)
|
| // http://crbug.com/604923
|
| // Unify this with the Browser Distribution code.
|
| -bool GetDefaultUserDataDirectory(base::string16* result);
|
| +bool GetDefaultUserDataDirectory(std::wstring* result);
|
|
|
| // Populates |crash_dir| with the default crash dump location regardless of
|
| // whether DIR_USER_DATA or DIR_CRASH_DUMPS has been overridden.
|
| // TODO(ananta)
|
| // http://crbug.com/604923
|
| // Unify this with the Browser Distribution code.
|
| -bool GetDefaultCrashDumpLocation(base::string16* crash_dir);
|
| +bool GetDefaultCrashDumpLocation(std::wstring* crash_dir);
|
|
|
| // Returns the contents of the specified |variable_name| from the environment
|
| // block of the calling process. Returns an empty string if the variable does
|
| // not exist.
|
| std::string GetEnvironmentString(const std::string& variable_name);
|
| -base::string16 GetEnvironmentString16(const base::string16& variable_name);
|
| +std::wstring GetEnvironmentString16(const std::wstring& variable_name);
|
|
|
| // Sets the environment variable identified by |variable_name| to the value
|
| // identified by |new_value|.
|
| bool SetEnvironmentString(const std::string& variable_name,
|
| const std::string& new_value);
|
| -bool SetEnvironmentString16(const base::string16& variable_name,
|
| - const base::string16& new_value);
|
| +bool SetEnvironmentString16(const std::wstring& variable_name,
|
| + const std::wstring& new_value);
|
|
|
| // Returns true if the environment variable identified by |variable_name|
|
| // exists.
|
| bool HasEnvironmentVariable(const std::string& variable_name);
|
| -bool HasEnvironmentVariable16(const base::string16& variable_name);
|
| +bool HasEnvironmentVariable16(const std::wstring& variable_name);
|
|
|
| // Gets the exe version details like the |product_name|, |version|,
|
| // |special_build|, |channel_name|, etc. Most of this information is read
|
| @@ -131,11 +129,11 @@ bool HasEnvironmentVariable16(const base::string16& variable_name);
|
| // TODO(ananta)
|
| // http://crbug.com/604923
|
| // Unify this with the Browser Distribution code.
|
| -bool GetExecutableVersionDetails(const base::string16& exe_path,
|
| - base::string16* product_name,
|
| - base::string16* version,
|
| - base::string16* special_build,
|
| - base::string16* channel_name);
|
| +bool GetExecutableVersionDetails(const std::wstring& exe_path,
|
| + std::wstring* product_name,
|
| + std::wstring* version,
|
| + std::wstring* special_build,
|
| + std::wstring* channel_name);
|
|
|
| // Gets the channel name for the current Chrome process.
|
| // If |add_modifier| is true the channel name is returned with the modifier
|
| @@ -146,8 +144,7 @@ bool GetExecutableVersionDetails(const base::string16& exe_path,
|
| // Unify this with the Browser Distribution code.
|
| void GetChromeChannelName(bool is_per_user_install,
|
| bool add_modifier,
|
| - base::string16* channel_name);
|
| -
|
| + std::wstring* channel_name);
|
|
|
| // Returns the version of Google Update that is installed.
|
| // TODO(ananta)
|
| @@ -160,7 +157,7 @@ std::string GetGoogleUpdateVersion();
|
| // TODO(ananta)
|
| // http://crbug.com/604923
|
| // Unify this with the Browser Distribution code.
|
| -base::string16 GetChromeInstallSubDirectory();
|
| +std::wstring GetChromeInstallSubDirectory();
|
|
|
| // Returns the registry path where the browser crash dumps metrics need to be
|
| // written to.
|
| @@ -168,7 +165,7 @@ base::string16 GetChromeInstallSubDirectory();
|
| // http://crbug.com/604923
|
| // Unify this with the version in
|
| // chrome\common\metrics_constants_util_win.cc
|
| -base::string16 GetBrowserCrashDumpAttemptsRegistryPath();
|
| +std::wstring GetBrowserCrashDumpAttemptsRegistryPath();
|
|
|
| // Returns true if the |source| string matches the |pattern|. The pattern
|
| // may contain wildcards like '?', which matches one character or a '*'
|
| @@ -176,12 +173,12 @@ base::string16 GetBrowserCrashDumpAttemptsRegistryPath();
|
| // Please note that pattern matches the whole string. If you want to find
|
| // something in the middle of the string then you need to specify the pattern
|
| // as '*xyz*'.
|
| -bool MatchPattern(const base::string16& source, const base::string16& pattern);
|
| +bool MatchPattern(const std::wstring& source, const std::wstring& pattern);
|
|
|
| // UTF8 to UTF16 and vice versa conversion helpers.
|
| -base::string16 UTF8ToUTF16(const std::string& source);
|
| +std::wstring UTF8ToUTF16(const std::string& source);
|
|
|
| -std::string UTF16ToUTF8(const base::string16& source);
|
| +std::string UTF16ToUTF8(const std::wstring& source);
|
|
|
| // Tokenizes a string |str| based on single character delimiter.
|
| // The tokens are returned in a vector. The |trim_spaces| parameter indicates
|
| @@ -189,9 +186,9 @@ std::string UTF16ToUTF8(const base::string16& source);
|
| std::vector<std::string> TokenizeString(const std::string& str,
|
| char delimiter,
|
| bool trim_spaces);
|
| -std::vector<base::string16> TokenizeString16(const base::string16& str,
|
| - base::char16 delimiter,
|
| - bool trim_spaces);
|
| +std::vector<std::wstring> TokenizeString16(const std::wstring& str,
|
| + wchar_t delimiter,
|
| + bool trim_spaces);
|
|
|
| // Compares version strings of the form "X.X.X.X" and returns the result of the
|
| // comparison in the |result| parameter. The result is as below:
|
|
|