| Index: chrome/browser/extensions/activity_log/activity_log.cc
|
| diff --git a/chrome/browser/extensions/activity_log/activity_log.cc b/chrome/browser/extensions/activity_log/activity_log.cc
|
| index d80eedc3c514686945c08acb267ff37e06b1d816..66065b7545f6dbf4e59eec6e46e7abfbbb35b802 100644
|
| --- a/chrome/browser/extensions/activity_log/activity_log.cc
|
| +++ b/chrome/browser/extensions/activity_log/activity_log.cc
|
| @@ -413,4 +413,34 @@ void ActivityLog::RegisterProfilePrefs(
|
| user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF);
|
| }
|
|
|
| +void ActivityLog::RemoveURLs(const std::vector<GURL>& restrict_urls) {
|
| + if (!IsLogEnabled()) {
|
| + DLOG(INFO) << "Log not enabled for this profile.";
|
| + return;
|
| + }
|
| + policy_->RemoveURLs(restrict_urls);
|
| +}
|
| +
|
| +void ActivityLog::RemoveURLs(const std::set<GURL>& restrict_urls) {
|
| + if (!IsLogEnabled()) {
|
| + DLOG(INFO) << "Log not enabled for this profile.";
|
| + return;
|
| + }
|
| +
|
| + std::vector<GURL> urls;
|
| + for (std::set<GURL>::iterator it = restrict_urls.begin();
|
| + it != restrict_urls.end(); ++it) {
|
| + urls.push_back(*it);
|
| + }
|
| + policy_->RemoveURLs(urls);
|
| +}
|
| +
|
| +void ActivityLog::RemoveURL(const GURL& url) {
|
| + if (url.is_empty())
|
| + return;
|
| + std::vector<GURL> urls;
|
| + urls.push_back(url);
|
| + RemoveURLs(urls);
|
| +}
|
| +
|
| } // namespace extensions
|
|
|