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

Side by Side Diff: ios/chrome/app/startup_tasks.mm

Issue 2933823002: [ObjC ARC] Converts ios/chrome/app:app_internal to ARC. (Closed)
Patch Set: Rebased Created 3 years, 6 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
« no previous file with comments | « ios/chrome/app/memory_monitor.mm ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 #import "ios/chrome/app/startup_tasks.h" 5 #import "ios/chrome/app/startup_tasks.h"
6 6
7 #import <MediaPlayer/MediaPlayer.h> 7 #import <MediaPlayer/MediaPlayer.h>
8 8
9 #import "base/ios/weak_nsobject.h"
10 #import "base/mac/bind_objc_block.h" 9 #import "base/mac/bind_objc_block.h"
11 #include "components/bookmarks/browser/startup_task_runner_service.h" 10 #include "components/bookmarks/browser/startup_task_runner_service.h"
12 #import "ios/chrome/app/deferred_initialization_runner.h" 11 #import "ios/chrome/app/deferred_initialization_runner.h"
13 #include "ios/chrome/app/tests_hook.h" 12 #include "ios/chrome/app/tests_hook.h"
14 #include "ios/chrome/browser/application_context.h" 13 #include "ios/chrome/browser/application_context.h"
15 #include "ios/chrome/browser/bookmarks/startup_task_runner_service_factory.h" 14 #include "ios/chrome/browser/bookmarks/startup_task_runner_service_factory.h"
16 #include "ios/chrome/browser/browser_state/chrome_browser_state.h" 15 #include "ios/chrome/browser/browser_state/chrome_browser_state.h"
17 #include "ios/chrome/browser/ios_chrome_io_thread.h" 16 #include "ios/chrome/browser/ios_chrome_io_thread.h"
18 #import "ios/chrome/browser/omaha/omaha_service.h" 17 #import "ios/chrome/browser/omaha/omaha_service.h"
19 #include "ios/chrome/browser/reading_list/reading_list_download_service.h" 18 #include "ios/chrome/browser/reading_list/reading_list_download_service.h"
20 #include "ios/chrome/browser/reading_list/reading_list_download_service_factory. h" 19 #include "ios/chrome/browser/reading_list/reading_list_download_service_factory. h"
21 #import "ios/chrome/browser/ui/main/browser_view_information.h" 20 #import "ios/chrome/browser/ui/main/browser_view_information.h"
22 #import "ios/chrome/browser/upgrade/upgrade_center.h" 21 #import "ios/chrome/browser/upgrade/upgrade_center.h"
23 22
23 #if !defined(__has_feature) || !__has_feature(objc_arc)
24 #error "This file requires ARC support."
25 #endif
26
24 namespace { 27 namespace {
25 // Constants for deferred initilization of the profile start-up task runners. 28 // Constants for deferred initilization of the profile start-up task runners.
26 NSString* const kStartProfileStartupTaskRunners = 29 NSString* const kStartProfileStartupTaskRunners =
27 @"StartProfileStartupTaskRunners"; 30 @"StartProfileStartupTaskRunners";
28 } // namespace 31 } // namespace
29 32
30 @interface StartupTasks () 33 @interface StartupTasks ()
31 34
32 // Performs browser state initialization tasks that don't need to happen 35 // Performs browser state initialization tasks that don't need to happen
33 // synchronously at startup. 36 // synchronously at startup.
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 NSDictionary* nowPlayingInfo = 98 NSDictionary* nowPlayingInfo =
96 [[MPNowPlayingInfoCenter defaultCenter] nowPlayingInfo]; 99 [[MPNowPlayingInfoCenter defaultCenter] nowPlayingInfo];
97 if (nowPlayingInfo[MPMediaItemPropertyTitle]) { 100 if (nowPlayingInfo[MPMediaItemPropertyTitle]) {
98 // No need to clear playing info if media is being played but there is no 101 // No need to clear playing info if media is being played but there is no
99 // way to check if video or audio is playing in web view. 102 // way to check if video or audio is playing in web view.
100 [[MPNowPlayingInfoCenter defaultCenter] setNowPlayingInfo:nil]; 103 [[MPNowPlayingInfoCenter defaultCenter] setNowPlayingInfo:nil];
101 } 104 }
102 } 105 }
103 106
104 @end 107 @end
OLDNEW
« no previous file with comments | « ios/chrome/app/memory_monitor.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698