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

Side by Side Diff: chrome/browser/safe_browsing/settings_reset_prompt/settings_reset_prompt_config.h

Issue 2740893002: Settings reset prompt: Enable the feature for fieldtrial testing. (Closed)
Patch Set: 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
« no previous file with comments | « no previous file | testing/variations/fieldtrial_testing_config.json » ('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 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 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 CHROME_BROWSER_SAFE_BROWSING_SETTINGS_RESET_PROMPT_SETTINGS_RESET_PROMPT _CONFIG_H_ 5 #ifndef CHROME_BROWSER_SAFE_BROWSING_SETTINGS_RESET_PROMPT_SETTINGS_RESET_PROMPT _CONFIG_H_
6 #define CHROME_BROWSER_SAFE_BROWSING_SETTINGS_RESET_PROMPT_SETTINGS_RESET_PROMPT _CONFIG_H_ 6 #define CHROME_BROWSER_SAFE_BROWSING_SETTINGS_RESET_PROMPT_SETTINGS_RESET_PROMPT _CONFIG_H_
7 7
8 #include <cstddef> 8 #include <cstddef>
9 #include <memory> 9 #include <memory>
10 #include <string> 10 #include <string>
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 }; 58 };
59 enum ConfigError : int; 59 enum ConfigError : int;
60 60
61 bool Init(); 61 bool Init();
62 ConfigError ParseDomainHashes(const std::string& domain_hashes_json); 62 ConfigError ParseDomainHashes(const std::string& domain_hashes_json);
63 63
64 // Map of 32 byte SHA256 hashes to integer domain IDs. 64 // Map of 32 byte SHA256 hashes to integer domain IDs.
65 std::unordered_map<SHA256Hash, int, SHA256HashHasher> domain_hashes_; 65 std::unordered_map<SHA256Hash, int, SHA256HashHasher> domain_hashes_;
66 66
67 // Other feature parameters. 67 // Other feature parameters.
68 //
69 // If you add any required feature parameters, make sure to update the field
70 // trial testing configuration for the "SettingsResetPrompt" feature in
71 // src/testing/variations/fieldtrial_testing_config.json
68 base::TimeDelta delay_before_prompt_; 72 base::TimeDelta delay_before_prompt_;
69 int prompt_wave_ = 0; 73 int prompt_wave_ = 0;
70 base::TimeDelta time_between_prompts_; 74 base::TimeDelta time_between_prompts_;
71 75
72 DISALLOW_COPY_AND_ASSIGN(SettingsResetPromptConfig); 76 DISALLOW_COPY_AND_ASSIGN(SettingsResetPromptConfig);
73 }; 77 };
74 78
75 } // namespace safe_browsing 79 } // namespace safe_browsing
76 80
77 #endif // CHROME_BROWSER_SAFE_BROWSING_SETTINGS_RESET_PROMPT_SETTINGS_RESET_PRO MPT_CONFIG_H_ 81 #endif // CHROME_BROWSER_SAFE_BROWSING_SETTINGS_RESET_PROMPT_SETTINGS_RESET_PRO MPT_CONFIG_H_
OLDNEW
« no previous file with comments | « no previous file | testing/variations/fieldtrial_testing_config.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698