summaryrefslogtreecommitdiffstats
path: root/chrome/browser/search_engines/template_url.h
diff options
context:
space:
mode:
authorsky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-09-03 03:54:06 +0000
committersky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-09-03 03:54:06 +0000
commit8080880d0c6a81f607ddf2f77467b924d6f64471 (patch)
treeb289969ea17bf8648a57b101436d91ed2a1338a7 /chrome/browser/search_engines/template_url.h
parent8946108aa14d423dc7b39cd6eff0954fabc27a89 (diff)
downloadchromium_src-8080880d0c6a81f607ddf2f77467b924d6f64471.zip
chromium_src-8080880d0c6a81f607ddf2f77467b924d6f64471.tar.gz
chromium_src-8080880d0c6a81f607ddf2f77467b924d6f64471.tar.bz2
Lands http://codereview.chromium.org/3309007/show for jeanluc:
Add a created_by_policy field to TemplateURL. Added unit tests. BUG=49306 TEST=WebDatabaseTest.Keywords* Review URL: http://codereview.chromium.org/3323006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@58460 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/search_engines/template_url.h')
-rw-r--r--chrome/browser/search_engines/template_url.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/chrome/browser/search_engines/template_url.h b/chrome/browser/search_engines/template_url.h
index 201964f..42eb0bf 100644
--- a/chrome/browser/search_engines/template_url.h
+++ b/chrome/browser/search_engines/template_url.h
@@ -411,6 +411,13 @@ class TemplateURL {
void set_date_created(base::Time time) { date_created_ = time; }
base::Time date_created() const { return date_created_; }
+ // True if this TemplateURL was automatically created by the administrator via
+ // group policy.
+ void set_created_by_policy(bool created_by_policy) {
+ created_by_policy_ = created_by_policy;
+ }
+ bool created_by_policy() const { return created_by_policy_; }
+
// Number of times this keyword has been explicitly used to load a URL. We
// don't increment this for uses as the "default search engine" since that's
// not really "explicit" usage and incrementing would result in pinning the
@@ -489,6 +496,7 @@ class TemplateURL {
std::vector<std::string> input_encodings_;
TemplateURLID id_;
base::Time date_created_;
+ bool created_by_policy_;
int usage_count_;
TemplateURLPrepopulateData::SearchEngineType search_engine_type_;
int logo_id_;