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

Side by Side Diff: chrome/browser/extensions/api/browsing_data/browsing_data_test.cc

Issue 12212047: Linux/ChromeOS Chromium style checker cleanup, chrome/browser/extensions edition. (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Created 7 years, 10 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "chrome/browser/extensions/api/browsing_data/browsing_data_api.h" 5 #include "chrome/browser/extensions/api/browsing_data/browsing_data_api.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 58
59 int GetRemovalMask() { 59 int GetRemovalMask() {
60 return called_with_details_->removal_mask; 60 return called_with_details_->removal_mask;
61 } 61 }
62 62
63 int GetOriginSetMask() { 63 int GetOriginSetMask() {
64 return called_with_details_->origin_set_mask; 64 return called_with_details_->origin_set_mask;
65 } 65 }
66 66
67 protected: 67 protected:
68 virtual void SetUpOnMainThread() { 68 virtual void SetUpOnMainThread() OVERRIDE {
69 called_with_details_.reset(new BrowsingDataRemover::NotificationDetails()); 69 called_with_details_.reset(new BrowsingDataRemover::NotificationDetails());
70 registrar_.Add(this, chrome::NOTIFICATION_BROWSING_DATA_REMOVED, 70 registrar_.Add(this, chrome::NOTIFICATION_BROWSING_DATA_REMOVED,
71 content::Source<Profile>(browser()->profile())); 71 content::Source<Profile>(browser()->profile()));
72 } 72 }
73 73
74 // content::NotificationObserver implementation. 74 // content::NotificationObserver implementation.
75 virtual void Observe(int type, 75 virtual void Observe(int type,
76 const content::NotificationSource& source, 76 const content::NotificationSource& source,
77 const content::NotificationDetails& details) OVERRIDE { 77 const content::NotificationDetails& details) OVERRIDE {
78 DCHECK_EQ(type, chrome::NOTIFICATION_BROWSING_DATA_REMOVED); 78 DCHECK_EQ(type, chrome::NOTIFICATION_BROWSING_DATA_REMOVED);
(...skipping 335 matching lines...) Expand 10 before | Expand all | Expand 10 after
414 414
415 SetPrefsAndVerifySettings( 415 SetPrefsAndVerifySettings(
416 BrowsingDataRemover::REMOVE_COOKIES | 416 BrowsingDataRemover::REMOVE_COOKIES |
417 BrowsingDataRemover::REMOVE_HISTORY | 417 BrowsingDataRemover::REMOVE_HISTORY |
418 BrowsingDataRemover::REMOVE_DOWNLOADS, 418 BrowsingDataRemover::REMOVE_DOWNLOADS,
419 UNPROTECTED_WEB, 419 UNPROTECTED_WEB,
420 site_data_no_plugins | 420 site_data_no_plugins |
421 BrowsingDataRemover::REMOVE_HISTORY | 421 BrowsingDataRemover::REMOVE_HISTORY |
422 BrowsingDataRemover::REMOVE_DOWNLOADS); 422 BrowsingDataRemover::REMOVE_DOWNLOADS);
423 } 423 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698