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

Side by Side Diff: chrome/browser/sync/test/integration/autofill_helper.cc

Issue 10071033: RefCounted types should not have public destructors, chrome/browser/ part 2 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Implementation ordering fixes as well Created 8 years, 8 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/sync/test/integration/autofill_helper.h" 5 #include "chrome/browser/sync/test/integration/autofill_helper.h"
6 6
7 #include "chrome/browser/autofill/autofill_common_test.h" 7 #include "chrome/browser/autofill/autofill_common_test.h"
8 #include "chrome/browser/autofill/autofill_profile.h" 8 #include "chrome/browser/autofill/autofill_profile.h"
9 #include "chrome/browser/autofill/autofill_type.h" 9 #include "chrome/browser/autofill/autofill_type.h"
10 #include "chrome/browser/autofill/personal_data_manager.h" 10 #include "chrome/browser/autofill/personal_data_manager.h"
(...skipping 17 matching lines...) Expand all
28 using testing::_; 28 using testing::_;
29 29
30 namespace { 30 namespace {
31 31
32 ACTION_P(SignalEvent, event) { 32 ACTION_P(SignalEvent, event) {
33 event->Signal(); 33 event->Signal();
34 } 34 }
35 35
36 class AutofillDBThreadObserverHelper : public DBThreadObserverHelper { 36 class AutofillDBThreadObserverHelper : public DBThreadObserverHelper {
37 protected: 37 protected:
38 virtual ~AutofillDBThreadObserverHelper() {}
39
38 virtual void RegisterObservers() { 40 virtual void RegisterObservers() {
39 registrar_.Add(&observer_, 41 registrar_.Add(&observer_,
40 chrome::NOTIFICATION_AUTOFILL_ENTRIES_CHANGED, 42 chrome::NOTIFICATION_AUTOFILL_ENTRIES_CHANGED,
41 content::NotificationService::AllSources()); 43 content::NotificationService::AllSources());
42 registrar_.Add(&observer_, 44 registrar_.Add(&observer_,
43 chrome::NOTIFICATION_AUTOFILL_PROFILE_CHANGED, 45 chrome::NOTIFICATION_AUTOFILL_PROFILE_CHANGED,
44 content::NotificationService::AllSources()); 46 content::NotificationService::AllSources());
45 } 47 }
46 }; 48 };
47 49
(...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after
310 if (!ProfilesMatch(0, i)) { 312 if (!ProfilesMatch(0, i)) {
311 LOG(ERROR) << "Profile " << i << "does not contain the same autofill " 313 LOG(ERROR) << "Profile " << i << "does not contain the same autofill "
312 "profiles as profile 0."; 314 "profiles as profile 0.";
313 return false; 315 return false;
314 } 316 }
315 } 317 }
316 return true; 318 return true;
317 } 319 }
318 320
319 } // namespace autofill_helper 321 } // namespace autofill_helper
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698