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

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

Issue 2791593002: Allow installer::GetLocalizedString to return mode-specific strings. (Closed)
Patch Set: Created 3 years, 8 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 extends generic BrowserDistribution class to declare Google Chrome 5 // This file extends generic BrowserDistribution class to declare Google Chrome
6 // specific implementation. 6 // specific implementation.
7 7
8 #ifndef CHROME_INSTALLER_UTIL_GOOGLE_CHROME_DISTRIBUTION_H_ 8 #ifndef CHROME_INSTALLER_UTIL_GOOGLE_CHROME_DISTRIBUTION_H_
9 #define CHROME_INSTALLER_UTIL_GOOGLE_CHROME_DISTRIBUTION_H_ 9 #define CHROME_INSTALLER_UTIL_GOOGLE_CHROME_DISTRIBUTION_H_
10 10
11 #include <memory>
12
13 #include "base/strings/string16.h"
14 #include "chrome/installer/util/browser_distribution.h" 11 #include "chrome/installer/util/browser_distribution.h"
15 12
16 namespace base {
17 class FilePath;
18 }
19
20 class AppRegistrationData;
21
22 class GoogleChromeDistribution : public BrowserDistribution { 13 class GoogleChromeDistribution : public BrowserDistribution {
23 public: 14 public:
24 // Opens the Google Chrome uninstall survey window. 15 // Opens the Google Chrome uninstall survey window.
25 // version refers to the version of Chrome being uninstalled. 16 // version refers to the version of Chrome being uninstalled.
26 // local_data_path is the path of the file containing json metrics that 17 // local_data_path is the path of the file containing json metrics that
27 // will be parsed. If this file indicates that the user has opted in to 18 // will be parsed. If this file indicates that the user has opted in to
28 // providing anonymous usage data, then some additional statistics will 19 // providing anonymous usage data, then some additional statistics will
29 // be added to the survey url. 20 // be added to the survey url.
30 // distribution_data contains Google Update related data that will be 21 // distribution_data contains Google Update related data that will be
31 // concatenated to the survey url if the file in local_data_path indicates 22 // concatenated to the survey url if the file in local_data_path indicates
(...skipping 16 matching lines...) Expand all
48 39
49 void UpdateInstallStatus( 40 void UpdateInstallStatus(
50 bool system_install, 41 bool system_install,
51 installer::ArchiveType archive_type, 42 installer::ArchiveType archive_type,
52 installer::InstallStatus install_status) override; 43 installer::InstallStatus install_status) override;
53 44
54 protected: 45 protected:
55 // Disallow construction from others. 46 // Disallow construction from others.
56 GoogleChromeDistribution(); 47 GoogleChromeDistribution();
57 48
58 explicit GoogleChromeDistribution(
59 std::unique_ptr<AppRegistrationData> app_reg_data);
60
61 private: 49 private:
62 friend class BrowserDistribution; 50 friend class BrowserDistribution;
63 }; 51 };
64 52
65 #endif // CHROME_INSTALLER_UTIL_GOOGLE_CHROME_DISTRIBUTION_H_ 53 #endif // CHROME_INSTALLER_UTIL_GOOGLE_CHROME_DISTRIBUTION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698