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

Side by Side Diff: components/dom_distiller/core/page_features.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/page_features.h" 5 #include "components/dom_distiller/core/page_features.h"
6 6
7 #include <stddef.h>
8
7 #include <string> 9 #include <string>
8 10
9 #include "base/json/json_reader.h" 11 #include "base/json/json_reader.h"
10 #include "third_party/re2/src/re2/re2.h" 12 #include "third_party/re2/src/re2/re2.h"
11 #include "url/gurl.h" 13 #include "url/gurl.h"
12 14
13 namespace dom_distiller { 15 namespace dom_distiller {
14 /* This code needs to derive features in the same way and order in which they 16 /* This code needs to derive features in the same way and order in which they
15 * are derived when training the model. Parts of that code are reproduced in the 17 * are derived when training the model. Parts of that code are reproduced in the
16 * comments below. 18 * comments below.
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after
234 features.push_back(mozScore); 236 features.push_back(mozScore);
235 // 'mozScoreAllSqrt' 237 // 'mozScoreAllSqrt'
236 features.push_back(mozScoreAllSqrt); 238 features.push_back(mozScoreAllSqrt);
237 // 'mozScoreAllLinear' 239 // 'mozScoreAllLinear'
238 features.push_back(mozScoreAllLinear); 240 features.push_back(mozScoreAllLinear);
239 241
240 return features; 242 return features;
241 } 243 }
242 244
243 } // namespace dom_distiller 245 } // namespace dom_distiller
OLDNEW
« no previous file with comments | « components/dom_distiller/core/dom_distiller_store_unittest.cc ('k') | components/dom_distiller/core/page_features_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698