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

Side by Side Diff: chrome/browser/chromeos/login/signin/merge_session_navigation_throttle.cc

Issue 2830353003: Tracing for NavigationHandle lifetime and state. (Closed)
Patch Set: Rebase. Created 3 years, 8 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 "chrome/browser/chromeos/login/signin/merge_session_navigation_throttle .h" 5 #include "chrome/browser/chromeos/login/signin/merge_session_navigation_throttle .h"
6 6
7 #include "chrome/browser/chromeos/login/signin/merge_session_load_page.h" 7 #include "chrome/browser/chromeos/login/signin/merge_session_load_page.h"
8 #include "content/public/browser/browser_thread.h" 8 #include "content/public/browser/browser_thread.h"
9 #include "content/public/browser/navigation_handle.h" 9 #include "content/public/browser/navigation_handle.h"
10 10
(...skipping 27 matching lines...) Expand all
38 // The MergeSessionLoadPage will be deleted by the interstitial page once it 38 // The MergeSessionLoadPage will be deleted by the interstitial page once it
39 // is closed. 39 // is closed.
40 (new chromeos::MergeSessionLoadPage( 40 (new chromeos::MergeSessionLoadPage(
41 navigation_handle()->GetWebContents(), navigation_handle()->GetURL(), 41 navigation_handle()->GetWebContents(), navigation_handle()->GetURL(),
42 base::Bind(&MergeSessionNavigationThrottle::OnBlockingPageComplete, 42 base::Bind(&MergeSessionNavigationThrottle::OnBlockingPageComplete,
43 weak_factory_.GetWeakPtr()))) 43 weak_factory_.GetWeakPtr())))
44 ->Show(); 44 ->Show();
45 return content::NavigationThrottle::DEFER; 45 return content::NavigationThrottle::DEFER;
46 } 46 }
47 47
48 const char* MergeSessionNavigationThrottle::GetNameForLogging() {
49 return "MergeSessionNavigationThrottle";
50 }
51
48 void MergeSessionNavigationThrottle::OnBlockingPageComplete() { 52 void MergeSessionNavigationThrottle::OnBlockingPageComplete() {
49 DCHECK_CURRENTLY_ON(content::BrowserThread::UI); 53 DCHECK_CURRENTLY_ON(content::BrowserThread::UI);
50 navigation_handle()->Resume(); 54 navigation_handle()->Resume();
51 } 55 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698