| 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 <memory> | 5 #include <memory> |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/mac/scoped_nsobject.h" | 8 #include "base/mac/scoped_nsobject.h" |
| 9 #include "base/memory/ptr_util.h" |
| 9 #include "base/message_loop/message_loop.h" | 10 #include "base/message_loop/message_loop.h" |
| 10 #include "base/metrics/user_metrics.h" | 11 #include "base/metrics/user_metrics.h" |
| 11 #import "ios/chrome/browser/installation_notifier.h" | 12 #import "ios/chrome/browser/installation_notifier.h" |
| 12 #include "ios/chrome/browser/native_app_launcher/native_app_infobar_delegate.h" | 13 #include "ios/chrome/browser/native_app_launcher/native_app_infobar_delegate.h" |
| 13 #import "ios/chrome/browser/native_app_launcher/native_app_navigation_controller
.h" | 14 #import "ios/chrome/browser/native_app_launcher/native_app_navigation_controller
.h" |
| 14 #include "ios/chrome/test/ios_chrome_scoped_testing_chrome_browser_provider.h" | 15 #include "ios/chrome/test/ios_chrome_scoped_testing_chrome_browser_provider.h" |
| 15 #import "ios/public/provider/chrome/browser/native_app_launcher/fake_native_app_
metadata.h" | 16 #import "ios/public/provider/chrome/browser/native_app_launcher/fake_native_app_
metadata.h" |
| 16 #import "ios/public/provider/chrome/browser/native_app_launcher/fake_native_app_
whitelist_manager.h" | 17 #import "ios/public/provider/chrome/browser/native_app_launcher/fake_native_app_
whitelist_manager.h" |
| 17 #include "ios/public/provider/chrome/browser/test_chrome_browser_provider.h" | 18 #include "ios/public/provider/chrome/browser/test_chrome_browser_provider.h" |
| 18 #include "ios/web/public/test/test_web_thread.h" | 19 #include "ios/web/public/test/test_web_thread.h" |
| (...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 167 DCHECK([[controller_ appsPossiblyBeingInstalled] count] == 2); | 168 DCHECK([[controller_ appsPossiblyBeingInstalled] count] == 2); |
| 168 [fakeManager setAppScheme:kMapsAppName]; | 169 [fakeManager setAppScheme:kMapsAppName]; |
| 169 [controller_ removeAppFromNotification:notificationMaps]; | 170 [controller_ removeAppFromNotification:notificationMaps]; |
| 170 DCHECK([[controller_ appsPossiblyBeingInstalled] count] == 1); | 171 DCHECK([[controller_ appsPossiblyBeingInstalled] count] == 1); |
| 171 [fakeManager setAppScheme:kYoutubeAppName]; | 172 [fakeManager setAppScheme:kYoutubeAppName]; |
| 172 [controller_ removeAppFromNotification:notificationYouTube]; | 173 [controller_ removeAppFromNotification:notificationYouTube]; |
| 173 DCHECK([[controller_ appsPossiblyBeingInstalled] count] == 0); | 174 DCHECK([[controller_ appsPossiblyBeingInstalled] count] == 0); |
| 174 } | 175 } |
| 175 | 176 |
| 176 } // namespace | 177 } // namespace |
| OLD | NEW |