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

Side by Side Diff: athena/content/shell/scheme_classifier_factory.cc

Issue 623103002: replace OVERRIDE and FINAL with override and final in athena/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase on master Created 6 years, 2 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
« no previous file with comments | « athena/content/render_view_context_menu_impl.h ('k') | athena/content/web_activity.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "athena/content/public/scheme_classifier_factory.h" 5 #include "athena/content/public/scheme_classifier_factory.h"
6 6
7 #include "components/metrics/proto/omnibox_input_type.pb.h" 7 #include "components/metrics/proto/omnibox_input_type.pb.h"
8 #include "net/url_request/url_request.h" 8 #include "net/url_request/url_request.h"
9 9
10 namespace athena { 10 namespace athena {
11 11
12 namespace { 12 namespace {
13 13
14 // The AutocompleteSchemeClassifier implementation for athena_main. 14 // The AutocompleteSchemeClassifier implementation for athena_main.
15 class AthenaShellSchemeClassifier : public AutocompleteSchemeClassifier { 15 class AthenaShellSchemeClassifier : public AutocompleteSchemeClassifier {
16 public: 16 public:
17 AthenaShellSchemeClassifier() {} 17 AthenaShellSchemeClassifier() {}
18 virtual ~AthenaShellSchemeClassifier() {} 18 virtual ~AthenaShellSchemeClassifier() {}
19 19
20 // AutocompleteSchemeClassifier: 20 // AutocompleteSchemeClassifier:
21 virtual metrics::OmniboxInputType::Type GetInputTypeForScheme( 21 virtual metrics::OmniboxInputType::Type GetInputTypeForScheme(
22 const std::string& scheme) const OVERRIDE { 22 const std::string& scheme) const override {
23 if (net::URLRequest::IsHandledProtocol(scheme)) 23 if (net::URLRequest::IsHandledProtocol(scheme))
24 return metrics::OmniboxInputType::URL; 24 return metrics::OmniboxInputType::URL;
25 return metrics::OmniboxInputType::INVALID; 25 return metrics::OmniboxInputType::INVALID;
26 } 26 }
27 27
28 private: 28 private:
29 DISALLOW_COPY_AND_ASSIGN(AthenaShellSchemeClassifier); 29 DISALLOW_COPY_AND_ASSIGN(AthenaShellSchemeClassifier);
30 }; 30 };
31 31
32 } // namespace 32 } // namespace
33 33
34 scoped_ptr<AutocompleteSchemeClassifier> CreateSchemeClassifier( 34 scoped_ptr<AutocompleteSchemeClassifier> CreateSchemeClassifier(
35 content::BrowserContext* context) { 35 content::BrowserContext* context) {
36 return scoped_ptr<AutocompleteSchemeClassifier>( 36 return scoped_ptr<AutocompleteSchemeClassifier>(
37 new AthenaShellSchemeClassifier()); 37 new AthenaShellSchemeClassifier());
38 } 38 }
39 39
40 } // namespace athena 40 } // namespace athena
OLDNEW
« no previous file with comments | « athena/content/render_view_context_menu_impl.h ('k') | athena/content/web_activity.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698