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

Side by Side Diff: ios/chrome/browser/omaha/omaha_service.mm

Issue 2603973002: Import Objective C Frameworks (Closed)
Patch Set: only ios Created 3 years, 11 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 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
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 }
OLDNEW
« no previous file with comments | « ios/chrome/browser/metrics/mobile_session_shutdown_metrics_provider.mm ('k') | ios/chrome/browser/procedural_block_types.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698