| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 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/chrome/browser/omaha/omaha_service.h" | 5 #include "ios/chrome/browser/omaha/omaha_service.h" |
| 6 | 6 |
| 7 #include <Foundation/Foundation.h> | 7 #import <Foundation/Foundation.h> |
| 8 | 8 |
| 9 #include <memory> | 9 #include <memory> |
| 10 #include <utility> | 10 #include <utility> |
| 11 | 11 |
| 12 #include "base/bind.h" | 12 #include "base/bind.h" |
| 13 #include "base/i18n/time_formatting.h" | 13 #include "base/i18n/time_formatting.h" |
| 14 #include "base/ios/device_util.h" | 14 #include "base/ios/device_util.h" |
| 15 #include "base/logging.h" | 15 #include "base/logging.h" |
| 16 #include "base/mac/scoped_nsobject.h" | 16 #include "base/mac/scoped_nsobject.h" |
| 17 #include "base/memory/ptr_util.h" | 17 #include "base/memory/ptr_util.h" |
| (...skipping 683 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 701 | 701 |
| 702 void OmahaService::ClearPersistentStateForTests() { | 702 void OmahaService::ClearPersistentStateForTests() { |
| 703 NSUserDefaults* defaults = [NSUserDefaults standardUserDefaults]; | 703 NSUserDefaults* defaults = [NSUserDefaults standardUserDefaults]; |
| 704 [defaults removeObjectForKey:kNextTriesTimesKey]; | 704 [defaults removeObjectForKey:kNextTriesTimesKey]; |
| 705 [defaults removeObjectForKey:kCurrentPingKey]; | 705 [defaults removeObjectForKey:kCurrentPingKey]; |
| 706 [defaults removeObjectForKey:kNumberTriesKey]; | 706 [defaults removeObjectForKey:kNumberTriesKey]; |
| 707 [defaults removeObjectForKey:kLastSentVersionKey]; | 707 [defaults removeObjectForKey:kLastSentVersionKey]; |
| 708 [defaults removeObjectForKey:kLastSentTimeKey]; | 708 [defaults removeObjectForKey:kLastSentTimeKey]; |
| 709 [defaults removeObjectForKey:kRetryRequestIdKey]; | 709 [defaults removeObjectForKey:kRetryRequestIdKey]; |
| 710 } | 710 } |
| OLD | NEW |