| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "components/signin/ios/browser/account_consistency_service.h" | 5 #include "components/signin/ios/browser/account_consistency_service.h" |
| 6 | 6 |
| 7 #include <WebKit/WebKit.h> | 7 #import <WebKit/WebKit.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 #import "base/mac/foundation_util.h" | 11 #import "base/mac/foundation_util.h" |
| 12 #include "base/macros.h" | 12 #include "base/macros.h" |
| 13 #include "base/strings/sys_string_conversions.h" | 13 #include "base/strings/sys_string_conversions.h" |
| 14 #include "components/google/core/browser/google_util.h" | 14 #include "components/google/core/browser/google_util.h" |
| 15 #include "components/pref_registry/pref_registry_syncable.h" | 15 #include "components/pref_registry/pref_registry_syncable.h" |
| 16 #include "components/prefs/scoped_user_pref_update.h" | 16 #include "components/prefs/scoped_user_pref_update.h" |
| 17 #include "components/signin/core/browser/account_reconcilor.h" | 17 #include "components/signin/core/browser/account_reconcilor.h" |
| (...skipping 455 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 473 // |browser_state_| is now active. There might be some pending cookie requests | 473 // |browser_state_| is now active. There might be some pending cookie requests |
| 474 // to apply. | 474 // to apply. |
| 475 ApplyCookieRequests(); | 475 ApplyCookieRequests(); |
| 476 } | 476 } |
| 477 | 477 |
| 478 void AccountConsistencyService::OnInactive() { | 478 void AccountConsistencyService::OnInactive() { |
| 479 // |browser_state_| is now inactive. Stop using |web_view_| and don't create | 479 // |browser_state_| is now inactive. Stop using |web_view_| and don't create |
| 480 // a new one until it is active. | 480 // a new one until it is active. |
| 481 ResetWKWebView(); | 481 ResetWKWebView(); |
| 482 } | 482 } |
| OLD | NEW |