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

Side by Side Diff: components/signin/ios/browser/account_consistency_service.mm

Issue 1651203002: Update components for new prefs location. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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 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 #include <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/prefs/scoped_user_pref_update.h"
14 #include "base/strings/sys_string_conversions.h" 13 #include "base/strings/sys_string_conversions.h"
15 #include "base/time/time.h" 14 #include "base/time/time.h"
16 #include "components/google/core/browser/google_util.h" 15 #include "components/google/core/browser/google_util.h"
17 #include "components/pref_registry/pref_registry_syncable.h" 16 #include "components/pref_registry/pref_registry_syncable.h"
17 #include "components/prefs/scoped_user_pref_update.h"
18 #include "components/signin/core/browser/account_reconcilor.h" 18 #include "components/signin/core/browser/account_reconcilor.h"
19 #include "components/signin/core/browser/signin_client.h" 19 #include "components/signin/core/browser/signin_client.h"
20 #include "components/signin/core/browser/signin_header_helper.h" 20 #include "components/signin/core/browser/signin_header_helper.h"
21 #include "ios/web/public/browser_state.h" 21 #include "ios/web/public/browser_state.h"
22 #include "ios/web/public/web_state/web_state_policy_decider.h" 22 #include "ios/web/public/web_state/web_state_policy_decider.h"
23 #include "ios/web/public/web_view_creation_util.h" 23 #include "ios/web/public/web_view_creation_util.h"
24 #include "net/base/mac/url_conversions.h" 24 #include "net/base/mac/url_conversions.h"
25 #include "net/base/registry_controlled_domains/registry_controlled_domain.h" 25 #include "net/base/registry_controlled_domains/registry_controlled_domain.h"
26 #include "url/gurl.h" 26 #include "url/gurl.h"
27 27
(...skipping 411 matching lines...) Expand 10 before | Expand all | Expand 10 after
439 // |browser_state_| is now active. There might be some pending cookie requests 439 // |browser_state_| is now active. There might be some pending cookie requests
440 // to apply. 440 // to apply.
441 ApplyCookieRequests(); 441 ApplyCookieRequests();
442 } 442 }
443 443
444 void AccountConsistencyService::OnInactive() { 444 void AccountConsistencyService::OnInactive() {
445 // |browser_state_| is now inactive. Stop using |web_view_| and don't create 445 // |browser_state_| is now inactive. Stop using |web_view_| and don't create
446 // a new one until it is active. 446 // a new one until it is active.
447 ResetWKWebView(); 447 ResetWKWebView();
448 } 448 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698