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

Side by Side Diff: chrome/browser/autofill/autofill_external_delegate_browsertest.cc

Issue 14622003: components: Move PrefRegistrySyncable into user_prefs namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixes Created 7 years, 7 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 "base/memory/scoped_ptr.h" 5 #include "base/memory/scoped_ptr.h"
6 #include "chrome/browser/browser_process.h" 6 #include "chrome/browser/browser_process.h"
7 #include "chrome/browser/ui/browser.h" 7 #include "chrome/browser/ui/browser.h"
8 #include "chrome/browser/ui/browser_tabstrip.h" 8 #include "chrome/browser/ui/browser_tabstrip.h"
9 #include "chrome/browser/ui/tabs/tab_strip_model.h" 9 #include "chrome/browser/ui/tabs/tab_strip_model.h"
10 #include "chrome/common/url_constants.h" 10 #include "chrome/common/url_constants.h"
(...skipping 17 matching lines...) Expand all
28 namespace { 28 namespace {
29 29
30 class MockAutofillManagerDelegate 30 class MockAutofillManagerDelegate
31 : public autofill::TestAutofillManagerDelegate { 31 : public autofill::TestAutofillManagerDelegate {
32 public: 32 public:
33 MockAutofillManagerDelegate() {} 33 MockAutofillManagerDelegate() {}
34 virtual ~MockAutofillManagerDelegate() {} 34 virtual ~MockAutofillManagerDelegate() {}
35 35
36 virtual PrefService* GetPrefs() { return &prefs_; } 36 virtual PrefService* GetPrefs() { return &prefs_; }
37 37
38 PrefRegistrySyncable* GetPrefRegistry() { 38 user_prefs::PrefRegistrySyncable* GetPrefRegistry() {
39 return prefs_.registry(); 39 return prefs_.registry();
40 } 40 }
41 41
42 MOCK_METHOD6(ShowAutofillPopup, 42 MOCK_METHOD6(ShowAutofillPopup,
43 void(const gfx::RectF& element_bounds, 43 void(const gfx::RectF& element_bounds,
44 const std::vector<string16>& values, 44 const std::vector<string16>& values,
45 const std::vector<string16>& labels, 45 const std::vector<string16>& labels,
46 const std::vector<string16>& icons, 46 const std::vector<string16>& icons,
47 const std::vector<int>& identifiers, 47 const std::vector<int>& identifiers,
48 base::WeakPtr<AutofillPopupDelegate> delegate)); 48 base::WeakPtr<AutofillPopupDelegate> delegate));
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 browser()->OpenURL(content::OpenURLParams( 152 browser()->OpenURL(content::OpenURLParams(
153 GURL(chrome::kChromeUIBookmarksURL), content::Referrer(), 153 GURL(chrome::kChromeUIBookmarksURL), content::Referrer(),
154 CURRENT_TAB, content::PAGE_TRANSITION_TYPED, false)); 154 CURRENT_TAB, content::PAGE_TRANSITION_TYPED, false));
155 browser()->OpenURL(content::OpenURLParams( 155 browser()->OpenURL(content::OpenURLParams(
156 GURL(chrome::kChromeUIAboutURL), content::Referrer(), 156 GURL(chrome::kChromeUIAboutURL), content::Referrer(),
157 CURRENT_TAB, content::PAGE_TRANSITION_TYPED, false)); 157 CURRENT_TAB, content::PAGE_TRANSITION_TYPED, false));
158 observer.Wait(); 158 observer.Wait();
159 } 159 }
160 160
161 } // namespace autofill 161 } // namespace autofill
OLDNEW
« no previous file with comments | « chrome/browser/accessibility/invert_bubble_prefs.cc ('k') | chrome/browser/background/background_contents_service_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698