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

Side by Side Diff: chrome/browser/engagement/site_engagement_service.cc

Issue 1550593002: Switch to standard integer types in chrome/browser/, part 2 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 "chrome/browser/engagement/site_engagement_service.h" 5 #include "chrome/browser/engagement/site_engagement_service.h"
6 6
7 #include <stddef.h>
8
7 #include <algorithm> 9 #include <algorithm>
8 #include <cmath> 10 #include <cmath>
9 #include <vector> 11 #include <vector>
10 12
11 #include "base/command_line.h" 13 #include "base/command_line.h"
12 #include "base/metrics/field_trial.h" 14 #include "base/metrics/field_trial.h"
13 #include "base/strings/string_number_conversions.h" 15 #include "base/strings/string_number_conversions.h"
14 #include "base/strings/string_util.h" 16 #include "base/strings/string_util.h"
15 #include "base/time/clock.h" 17 #include "base/time/clock.h"
16 #include "base/time/default_clock.h" 18 #include "base/time/default_clock.h"
(...skipping 529 matching lines...) Expand 10 before | Expand all | Expand 10 after
546 HostContentSettingsMapFactory::GetForProfile(profile_); 548 HostContentSettingsMapFactory::GetForProfile(profile_);
547 for (const auto& origin_to_count : origin_counts) { 549 for (const auto& origin_to_count : origin_counts) {
548 if (origin_to_count.second != 0) 550 if (origin_to_count.second != 0)
549 continue; 551 continue;
550 552
551 settings_map->SetWebsiteSettingDefaultScope( 553 settings_map->SetWebsiteSettingDefaultScope(
552 origin_to_count.first, GURL(), CONTENT_SETTINGS_TYPE_SITE_ENGAGEMENT, 554 origin_to_count.first, GURL(), CONTENT_SETTINGS_TYPE_SITE_ENGAGEMENT,
553 std::string(), nullptr); 555 std::string(), nullptr);
554 } 556 }
555 } 557 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698