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

Side by Side Diff: chrome/browser/extensions/activity_log/fullstream_ui_policy.cc

Issue 18878009: Add functions to clean URLs from the activity log (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix some comments Created 7 years, 5 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 #include "base/files/file_path.h" 5 #include "base/files/file_path.h"
6 #include "base/json/json_string_value_serializer.h" 6 #include "base/json/json_string_value_serializer.h"
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/strings/string16.h" 8 #include "base/strings/string16.h"
9 #include "chrome/browser/extensions/activity_log/activity_database.h" 9 #include "chrome/browser/extensions/activity_log/activity_database.h"
10 #include "chrome/browser/extensions/activity_log/api_actions.h" 10 #include "chrome/browser/extensions/activity_log/api_actions.h"
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after
222 extra); 222 extra);
223 break; 223 break;
224 } 224 }
225 default: 225 default:
226 NOTREACHED(); 226 NOTREACHED();
227 } 227 }
228 228
229 ScheduleAndForget(db_, &ActivityDatabase::RecordAction, action); 229 ScheduleAndForget(db_, &ActivityDatabase::RecordAction, action);
230 } 230 }
231 231
232 void FullStreamUIPolicy::RemoveURLs(const std::vector<GURL>& gurls) {
233 ScheduleAndForget(db_, &ActivityDatabase::RemoveURLs, gurls);
234 }
235
236 void FullStreamUIPolicy::RemoveURL(const GURL& gurl) {
237 ScheduleAndForget(db_, &ActivityDatabase::RemoveURL, gurl);
238 }
239
232 } // namespace extensions 240 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698