| OLD | NEW |
| 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 "ios/net/cookies/system_cookie_util.h" | 5 #include "ios/net/cookies/system_cookie_util.h" |
| 6 | 6 |
| 7 #import <Foundation/Foundation.h> | 7 #import <Foundation/Foundation.h> |
| 8 #include <stddef.h> |
| 8 | 9 |
| 9 #include "base/logging.h" | 10 #include "base/logging.h" |
| 10 #include "base/metrics/histogram.h" | 11 #include "base/metrics/histogram.h" |
| 11 #include "base/strings/stringprintf.h" | 12 #include "base/strings/stringprintf.h" |
| 12 #include "base/strings/sys_string_conversions.h" | 13 #include "base/strings/sys_string_conversions.h" |
| 13 #include "net/cookies/cookie_constants.h" | 14 #include "net/cookies/cookie_constants.h" |
| 14 #include "url/gurl.h" | 15 #include "url/gurl.h" |
| 15 | 16 |
| 16 namespace net { | 17 namespace net { |
| 17 | 18 |
| (...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 144 ResetCookieCountMetrics(); | 145 ResetCookieCountMetrics(); |
| 145 } | 146 } |
| 146 | 147 |
| 147 void ResetCookieCountMetrics() { | 148 void ResetCookieCountMetrics() { |
| 148 NSUserDefaults* defaults = [NSUserDefaults standardUserDefaults]; | 149 NSUserDefaults* defaults = [NSUserDefaults standardUserDefaults]; |
| 149 [defaults setBool:NO forKey:kCheckCookieLossKey]; | 150 [defaults setBool:NO forKey:kCheckCookieLossKey]; |
| 150 [defaults synchronize]; | 151 [defaults synchronize]; |
| 151 } | 152 } |
| 152 | 153 |
| 153 } // namespace net | 154 } // namespace net |
| OLD | NEW |