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

Side by Side Diff: chrome/browser/ui/views/frame/test_with_browser_view.cc

Issue 2721993002: Omnibox - Make Clipboard Provider Enabled via an Experimental Feature (Closed)
Patch Set: rebase Created 3 years, 9 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
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 "chrome/browser/ui/views/frame/test_with_browser_view.h" 5 #include "chrome/browser/ui/views/frame/test_with_browser_view.h"
6 6
7 #include "base/memory/ptr_util.h" 7 #include "base/memory/ptr_util.h"
8 #include "build/build_config.h" 8 #include "build/build_config.h"
9 #include "chrome/browser/autocomplete/autocomplete_classifier_factory.h" 9 #include "chrome/browser/autocomplete/autocomplete_classifier_factory.h"
10 #include "chrome/browser/autocomplete/chrome_autocomplete_provider_client.h" 10 #include "chrome/browser/autocomplete/chrome_autocomplete_provider_client.h"
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 nullptr, nullptr, base::Closure()); 49 nullptr, nullptr, base::Closure());
50 } 50 }
51 51
52 std::unique_ptr<KeyedService> CreateAutocompleteClassifier( 52 std::unique_ptr<KeyedService> CreateAutocompleteClassifier(
53 content::BrowserContext* context) { 53 content::BrowserContext* context) {
54 Profile* profile = static_cast<Profile*>(context); 54 Profile* profile = static_cast<Profile*>(context);
55 return base::MakeUnique<AutocompleteClassifier>( 55 return base::MakeUnique<AutocompleteClassifier>(
56 base::WrapUnique(new AutocompleteController( 56 base::WrapUnique(new AutocompleteController(
57 base::WrapUnique(new ChromeAutocompleteProviderClient(profile)), 57 base::WrapUnique(new ChromeAutocompleteProviderClient(profile)),
58 58
59 nullptr, AutocompleteClassifier::kDefaultOmniboxProviders)), 59 nullptr, AutocompleteClassifier::DefaultOmniboxProviders())),
60 std::unique_ptr<AutocompleteSchemeClassifier>( 60 std::unique_ptr<AutocompleteSchemeClassifier>(
61 new TestSchemeClassifier())); 61 new TestSchemeClassifier()));
62 } 62 }
63 63
64 } // namespace 64 } // namespace
65 65
66 TestWithBrowserView::TestWithBrowserView() { 66 TestWithBrowserView::TestWithBrowserView() {
67 } 67 }
68 68
69 TestWithBrowserView::TestWithBrowserView(Browser::Type browser_type, 69 TestWithBrowserView::TestWithBrowserView(Browser::Type browser_type,
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 AutocompleteClassifierFactory::GetInstance()->SetTestingFactory( 118 AutocompleteClassifierFactory::GetInstance()->SetTestingFactory(
119 profile, &CreateAutocompleteClassifier); 119 profile, &CreateAutocompleteClassifier);
120 return profile; 120 return profile;
121 } 121 }
122 122
123 BrowserWindow* TestWithBrowserView::CreateBrowserWindow() { 123 BrowserWindow* TestWithBrowserView::CreateBrowserWindow() {
124 // Allow BrowserWithTestWindowTest to use Browser to create the default 124 // Allow BrowserWithTestWindowTest to use Browser to create the default
125 // BrowserView and BrowserFrame. 125 // BrowserView and BrowserFrame.
126 return nullptr; 126 return nullptr;
127 } 127 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/app_list/search/omnibox_provider.cc ('k') | chrome/browser/ui/webui/omnibox/omnibox_page_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698