| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/geolocation/omnibox_geolocation_authorization_alert
.h" | 5 #include "ios/chrome/browser/geolocation/omnibox_geolocation_authorization_alert
.h" |
| 6 | 6 |
| 7 #import <UIKit/UIKit.h> | 7 #import <UIKit/UIKit.h> |
| 8 | 8 |
| 9 #import "base/ios/weak_nsobject.h" | 9 #import "base/ios/weak_nsobject.h" |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| 11 #include "base/mac/scoped_nsobject.h" | 11 #include "base/mac/scoped_nsobject.h" |
| 12 #include "grit/components_strings.h" | 12 #include "components/strings/grit/components_strings.h" |
| 13 #include "ios/chrome/grit/ios_chromium_strings.h" | 13 #include "ios/chrome/grit/ios_chromium_strings.h" |
| 14 #include "ios/chrome/grit/ios_google_chrome_strings.h" | 14 #include "ios/chrome/grit/ios_google_chrome_strings.h" |
| 15 #include "ios/chrome/grit/ios_strings.h" | 15 #include "ios/chrome/grit/ios_strings.h" |
| 16 #include "ios/public/provider/chrome/browser/chrome_browser_provider.h" | 16 #include "ios/public/provider/chrome/browser/chrome_browser_provider.h" |
| 17 #include "ui/base/l10n/l10n_util_mac.h" | 17 #include "ui/base/l10n/l10n_util_mac.h" |
| 18 | 18 |
| 19 @interface OmniboxGeolocationAuthorizationAlert () <UIAlertViewDelegate> { | 19 @interface OmniboxGeolocationAuthorizationAlert () <UIAlertViewDelegate> { |
| 20 base::WeakNSProtocol<id<OmniboxGeolocationAuthorizationAlertDelegate>> | 20 base::WeakNSProtocol<id<OmniboxGeolocationAuthorizationAlertDelegate>> |
| 21 delegate_; | 21 delegate_; |
| 22 } | 22 } |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 case 1: | 74 case 1: |
| 75 [delegate_ authorizationAlertDidAuthorize:self]; | 75 [delegate_ authorizationAlertDidAuthorize:self]; |
| 76 break; | 76 break; |
| 77 default: | 77 default: |
| 78 NOTREACHED(); | 78 NOTREACHED(); |
| 79 break; | 79 break; |
| 80 } | 80 } |
| 81 } | 81 } |
| 82 | 82 |
| 83 @end | 83 @end |
| OLD | NEW |