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

Side by Side Diff: chrome/installer/util/browser_distribution.h

Issue 2718063002: Use install_static::GetAppGuid in place of BrowserDistribution and AppRegistrationData. (Closed)
Patch Set: huangs feedback plus Chromium test fix Created 3 years, 9 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 // This file declares a class that contains various method related to branding. 5 // This file declares a class that contains various method related to branding.
6 6
7 #ifndef CHROME_INSTALLER_UTIL_BROWSER_DISTRIBUTION_H_ 7 #ifndef CHROME_INSTALLER_UTIL_BROWSER_DISTRIBUTION_H_
8 #define CHROME_INSTALLER_UTIL_BROWSER_DISTRIBUTION_H_ 8 #define CHROME_INSTALLER_UTIL_BROWSER_DISTRIBUTION_H_
9 9
10 #include <memory> 10 #include <memory>
(...skipping 24 matching lines...) Expand all
35 DEFAULT_BROWSER_OS_CONTROL_ONLY, 35 DEFAULT_BROWSER_OS_CONTROL_ONLY,
36 DEFAULT_BROWSER_FULL_CONTROL 36 DEFAULT_BROWSER_FULL_CONTROL
37 }; 37 };
38 38
39 virtual ~BrowserDistribution(); 39 virtual ~BrowserDistribution();
40 40
41 static BrowserDistribution* GetDistribution(); 41 static BrowserDistribution* GetDistribution();
42 42
43 // Getter and adaptors for the underlying |app_reg_data_|. 43 // Getter and adaptors for the underlying |app_reg_data_|.
44 const AppRegistrationData& GetAppRegistrationData() const; 44 const AppRegistrationData& GetAppRegistrationData() const;
45 base::string16 GetAppGuid() const;
46 base::string16 GetStateKey() const; 45 base::string16 GetStateKey() const;
47 base::string16 GetStateMediumKey() const; 46 base::string16 GetStateMediumKey() const;
48 base::string16 GetVersionKey() const; 47 base::string16 GetVersionKey() const;
49 48
50 virtual void DoPostUninstallOperations( 49 virtual void DoPostUninstallOperations(
51 const base::Version& version, 50 const base::Version& version,
52 const base::FilePath& local_data_path, 51 const base::FilePath& local_data_path,
53 const base::string16& distribution_data); 52 const base::string16& distribution_data);
54 53
55 // Returns the GUID to be used when registering for Active Setup. 54 // Returns the GUID to be used when registering for Active Setup.
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 151
153 std::unique_ptr<AppRegistrationData> app_reg_data_; 152 std::unique_ptr<AppRegistrationData> app_reg_data_;
154 153
155 private: 154 private:
156 BrowserDistribution(); 155 BrowserDistribution();
157 156
158 DISALLOW_COPY_AND_ASSIGN(BrowserDistribution); 157 DISALLOW_COPY_AND_ASSIGN(BrowserDistribution);
159 }; 158 };
160 159
161 #endif // CHROME_INSTALLER_UTIL_BROWSER_DISTRIBUTION_H_ 160 #endif // CHROME_INSTALLER_UTIL_BROWSER_DISTRIBUTION_H_
OLDNEW
« no previous file with comments | « chrome/installer/util/app_registration_data.h ('k') | chrome/installer/util/browser_distribution.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698