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

Side by Side Diff: chrome/browser/ui/login/login_handler.cc

Issue 2278823003: Change net::LOAD_MAIN_FRAME to net::LOAD_MAIN_FRAME_DEPRECATED to discourage (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added deprecation flag to two recent tests. Created 4 years, 3 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 "chrome/browser/ui/login/login_handler.h" 5 #include "chrome/browser/ui/login/login_handler.h"
6 6
7 #include <string> 7 #include <string>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 629 matching lines...) Expand 10 before | Expand all | Expand 10 after
640 } 640 }
641 ShowLoginPrompt(request_url, auth_info, handler); 641 ShowLoginPrompt(request_url, auth_info, handler);
642 } 642 }
643 } 643 }
644 644
645 // ---------------------------------------------------------------------------- 645 // ----------------------------------------------------------------------------
646 // Public API 646 // Public API
647 647
648 LoginHandler* CreateLoginPrompt(net::AuthChallengeInfo* auth_info, 648 LoginHandler* CreateLoginPrompt(net::AuthChallengeInfo* auth_info,
649 net::URLRequest* request) { 649 net::URLRequest* request) {
650 bool is_main_frame = (request->load_flags() & net::LOAD_MAIN_FRAME) != 0; 650 bool is_main_frame =
651 (request->load_flags() & net::LOAD_MAIN_FRAME_DEPRECATED) != 0;
651 LoginHandler* handler = LoginHandler::Create(auth_info, request); 652 LoginHandler* handler = LoginHandler::Create(auth_info, request);
652 BrowserThread::PostTask( 653 BrowserThread::PostTask(
653 BrowserThread::UI, FROM_HERE, 654 BrowserThread::UI, FROM_HERE,
654 base::Bind(&LoginHandler::LoginDialogCallback, request->url(), 655 base::Bind(&LoginHandler::LoginDialogCallback, request->url(),
655 base::RetainedRef(auth_info), base::RetainedRef(handler), 656 base::RetainedRef(auth_info), base::RetainedRef(handler),
656 is_main_frame)); 657 is_main_frame));
657 return handler; 658 return handler;
658 } 659 }
OLDNEW
« no previous file with comments | « chrome/browser/net/chrome_network_delegate.cc ('k') | chrome/test/data/webui/net_internals/log_view_painter.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698