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

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

Issue 6288009: More installer refactoring in the interest of fixing some bugs and cleaning t... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 11 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #pragma once 10 #pragma once
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 72
73 virtual void LaunchUserExperiment(installer::InstallStatus status, 73 virtual void LaunchUserExperiment(installer::InstallStatus status,
74 const Version& version, 74 const Version& version,
75 const installer::Product& installation, 75 const installer::Product& installation,
76 bool system_level); 76 bool system_level);
77 77
78 // Assuming that the user qualifies, this function performs the inactive user 78 // Assuming that the user qualifies, this function performs the inactive user
79 // toast experiment. It will use chrome to show the UI and it will record the 79 // toast experiment. It will use chrome to show the UI and it will record the
80 // outcome in the registry. 80 // outcome in the registry.
81 virtual void InactiveUserToastExperiment(int flavor, 81 virtual void InactiveUserToastExperiment(int flavor,
82 const installer::Product& installation); 82 const installer::Product& installation,
83 const FilePath& application_path);
83 84
84 const std::wstring& product_guid() { return product_guid_; } 85 const std::wstring& product_guid() { return product_guid_; }
85 86
86 virtual bool SetChannelFlags(bool set, installer::ChannelInfo* channel_info);
87
88 protected: 87 protected:
89 void set_product_guid(const std::wstring& guid) { product_guid_ = guid; } 88 void set_product_guid(const std::wstring& guid) { product_guid_ = guid; }
90 89
91 // Disallow construction from others. 90 // Disallow construction from others.
92 explicit GoogleChromeDistribution( 91 GoogleChromeDistribution();
93 const installer::MasterPreferences& prefs);
94 92
95 private: 93 private:
96 friend class BrowserDistribution; 94 friend class BrowserDistribution;
97 95
98 FRIEND_TEST_ALL_PREFIXES(GoogleChromeDistTest, TestExtractUninstallMetrics); 96 FRIEND_TEST_ALL_PREFIXES(GoogleChromeDistTest, TestExtractUninstallMetrics);
99 97
100 // Extracts uninstall metrics from the JSON file located at file_path. 98 // Extracts uninstall metrics from the JSON file located at file_path.
101 // Returns them in a form suitable for appending to a url that already 99 // Returns them in a form suitable for appending to a url that already
102 // has GET parameters, i.e. &metric1=foo&metric2=bar. 100 // has GET parameters, i.e. &metric1=foo&metric2=bar.
103 // Returns true if uninstall_metrics has been successfully populated with 101 // Returns true if uninstall_metrics has been successfully populated with
(...skipping 10 matching lines...) Expand all
114 // Returns true if at least one uninstall metric was found in 112 // Returns true if at least one uninstall metric was found in
115 // uninstall_metrics_dict, false otherwise. 113 // uninstall_metrics_dict, false otherwise.
116 virtual bool BuildUninstallMetricsString( 114 virtual bool BuildUninstallMetricsString(
117 DictionaryValue* uninstall_metrics_dict, std::wstring* metrics); 115 DictionaryValue* uninstall_metrics_dict, std::wstring* metrics);
118 116
119 // The product ID for Google Update. 117 // The product ID for Google Update.
120 std::wstring product_guid_; 118 std::wstring product_guid_;
121 }; 119 };
122 120
123 #endif // CHROME_INSTALLER_UTIL_GOOGLE_CHROME_DISTRIBUTION_H_ 121 #endif // CHROME_INSTALLER_UTIL_GOOGLE_CHROME_DISTRIBUTION_H_
OLDNEW
« no previous file with comments | « chrome/installer/util/google_chrome_binaries_distribution.cc ('k') | chrome/installer/util/google_chrome_distribution.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698