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

Side by Side Diff: components/dom_distiller/core/distillable_page_detector.cc

Issue 1546143002: Switch to standard integer types in components/, part 1 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 "components/dom_distiller/core/distillable_page_detector.h" 5 #include "components/dom_distiller/core/distillable_page_detector.h"
6 6
7 #include <stddef.h>
8
7 #include "base/logging.h" 9 #include "base/logging.h"
8 #include "grit/components_resources.h" 10 #include "grit/components_resources.h"
9 #include "ui/base/resource/resource_bundle.h" 11 #include "ui/base/resource/resource_bundle.h"
10 12
11 namespace dom_distiller { 13 namespace dom_distiller {
12 14
13 const DistillablePageDetector* DistillablePageDetector::GetDefault() { 15 const DistillablePageDetector* DistillablePageDetector::GetDefault() {
14 static DistillablePageDetector* detector = nullptr; 16 static DistillablePageDetector* detector = nullptr;
15 if (!detector) { 17 if (!detector) {
16 std::string serialized_proto = 18 std::string serialized_proto =
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 } 73 }
72 } 74 }
73 return score; 75 return score;
74 } 76 }
75 77
76 double DistillablePageDetector::GetThreshold() const { 78 double DistillablePageDetector::GetThreshold() const {
77 return threshold_; 79 return threshold_;
78 } 80 }
79 81
80 } // namespace dom_distiller 82 } // namespace dom_distiller
OLDNEW
« no previous file with comments | « components/dom_distiller/core/distillable_page_detector.h ('k') | components/dom_distiller/core/distilled_content_store.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698