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

Unified Diff: chrome_frame/policy_settings.h

Issue 17153006: Chrome Frame turndown prompt. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: chrome_frame/policy_settings.h
diff --git a/chrome_frame/policy_settings.h b/chrome_frame/policy_settings.h
index aaae32c5d305968629cc2fe43b02e00fb21ab192..104f713aef0bf0f30252187cd75a8774489bad9a 100644
--- a/chrome_frame/policy_settings.h
+++ b/chrome_frame/policy_settings.h
@@ -44,17 +44,24 @@ class PolicySettings {
// line object must not be used when appending to another command line.
const CommandLine& AdditionalLaunchParameters() const;
+ // Returns true if the Chrome Frame turndown prompt should be suppressed.
+ bool suppress_turndown_prompt() const {
+ return suppress_turndown_prompt_;
+ }
+
// Helper functions for reading settings from the registry
static void ReadUrlSettings(RendererForUrl* default_renderer,
std::vector<std::wstring>* renderer_exclusion_list);
static void ReadContentTypeSetting(
std::vector<std::wstring>* content_type_list);
static void ReadStringSetting(const char* value_name, std::wstring* value);
+ static void ReadBoolSetting(const char* value_name, bool* value);
protected:
PolicySettings()
: default_renderer_(RENDERER_NOT_SPECIFIED),
- additional_launch_parameters_(CommandLine::NO_PROGRAM) {
+ additional_launch_parameters_(CommandLine::NO_PROGRAM),
+ suppress_turndown_prompt_(false) {
RefreshFromRegistry();
}
@@ -70,6 +77,7 @@ class PolicySettings {
std::vector<std::wstring> content_type_list_;
std::wstring application_locale_;
CommandLine additional_launch_parameters_;
+ bool suppress_turndown_prompt_;
private:
// This ensures no construction is possible outside of the class itself.

Powered by Google App Engine
This is Rietveld 408576698