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

Side by Side Diff: cloud_print/common/win/install_utils.h

Issue 107383002: Use base namespace for string16 in components and cloud_print. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « cloud_print/common/win/cloud_print_utils.cc ('k') | cloud_print/common/win/install_utils.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CLOUD_PRINT_COMMON_INSTALL_UTILS_H_ 5 #ifndef CLOUD_PRINT_COMMON_INSTALL_UTILS_H_
6 #define CLOUD_PRINT_COMMON_INSTALL_UTILS_H_ 6 #define CLOUD_PRINT_COMMON_INSTALL_UTILS_H_
7 7
8 #include <wtypes.h> 8 #include <wtypes.h>
9 #include <string> 9 #include <string>
10 10
11 #include "base/files/file_path.h" 11 #include "base/files/file_path.h"
12 #include "base/strings/string16.h" 12 #include "base/strings/string16.h"
13 13
14 namespace cloud_print { 14 namespace cloud_print {
15 15
16 // Sets Google Update registry keys after install or update. 16 // Sets Google Update registry keys after install or update.
17 void SetGoogleUpdateKeys(const string16& product_id, 17 void SetGoogleUpdateKeys(const base::string16& product_id,
18 const string16& product_name); 18 const base::string16& product_name);
19 19
20 // Sets custom error message to show by Google Update installer 20 // Sets custom error message to show by Google Update installer
21 void SetGoogleUpdateError(const string16& product_id, const string16& message); 21 void SetGoogleUpdateError(const base::string16& product_id,
22 const base::string16& message);
22 23
23 // Deletes Google Update reg keys on product uninstall. 24 // Deletes Google Update reg keys on product uninstall.
24 void DeleteGoogleUpdateKeys(const string16& product_id); 25 void DeleteGoogleUpdateKeys(const base::string16& product_id);
25 26
26 // Creates control panel uninstall item. 27 // Creates control panel uninstall item.
27 void CreateUninstallKey(const string16& uninstall_id, 28 void CreateUninstallKey(const base::string16& uninstall_id,
28 const string16& product_name, 29 const base::string16& product_name,
29 const std::string& uninstall_switch); 30 const std::string& uninstall_switch);
30 31
31 // Deletes control panel uninstall item. 32 // Deletes control panel uninstall item.
32 void DeleteUninstallKey(const string16& uninstall_id); 33 void DeleteUninstallKey(const base::string16& uninstall_id);
33 34
34 // Returns install location retrieved from control panel uninstall key. 35 // Returns install location retrieved from control panel uninstall key.
35 base::FilePath GetInstallLocation(const string16& uninstall_id); 36 base::FilePath GetInstallLocation(const base::string16& uninstall_id);
36 37
37 // Returns install location retrieved from control panel uninstall key. 38 // Returns install location retrieved from control panel uninstall key.
38 void DeleteProgramDir(const std::string& delete_switch); 39 void DeleteProgramDir(const std::string& delete_switch);
39 40
40 // Returns true if path is part of program files. 41 // Returns true if path is part of program files.
41 bool IsProgramsFilesParent(const base::FilePath& path); 42 bool IsProgramsFilesParent(const base::FilePath& path);
42 43
43 } // namespace cloud_print 44 } // namespace cloud_print
44 45
45 #endif // CLOUD_PRINT_COMMON_INSTALL_UTILS_H_ 46 #endif // CLOUD_PRINT_COMMON_INSTALL_UTILS_H_
46 47
OLDNEW
« no previous file with comments | « cloud_print/common/win/cloud_print_utils.cc ('k') | cloud_print/common/win/install_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698