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

Side by Side Diff: chrome/browser/extensions/api/identity/web_auth_flow.cc

Issue 10831116: Move SessionStorageNamespace entirely into NavigationController and support StoragePartitions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merged ToT Created 8 years, 4 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 | Annotate | Revision Log
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/extensions/api/identity/web_auth_flow.h" 5 #include "chrome/browser/extensions/api/identity/web_auth_flow.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/location.h" 9 #include "base/location.h"
10 #include "base/message_loop.h" 10 #include "base/message_loop.h"
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 content::Source<WebContents>(contents_)); 96 content::Source<WebContents>(contents_));
97 97
98 controller->LoadURL( 98 controller->LoadURL(
99 provider_url_, 99 provider_url_,
100 content::Referrer(), 100 content::Referrer(),
101 content::PAGE_TRANSITION_START_PAGE, 101 content::PAGE_TRANSITION_START_PAGE,
102 std::string()); 102 std::string());
103 } 103 }
104 104
105 WebContents* WebAuthFlow::CreateWebContents() { 105 WebContents* WebAuthFlow::CreateWebContents() {
106 return WebContents::Create(profile_, NULL, MSG_ROUTING_NONE, NULL, NULL); 106 return WebContents::Create(profile_, NULL, MSG_ROUTING_NONE, NULL);
107 } 107 }
108 108
109 void WebAuthFlow::ShowAuthFlowPopup() { 109 void WebAuthFlow::ShowAuthFlowPopup() {
110 // Pass ownership of WebContents to TabContents. 110 // Pass ownership of WebContents to TabContents.
111 tab_contents_ = new TabContents(contents_); 111 tab_contents_ = new TabContents(contents_);
112 contents_ = NULL; 112 contents_ = NULL;
113 Browser* browser = new Browser(Browser::CreateParams( 113 Browser* browser = new Browser(Browser::CreateParams(
114 Browser::TYPE_POPUP, profile_)); 114 Browser::TYPE_POPUP, profile_));
115 chrome::NavigateParams params(browser, tab_contents_); 115 chrome::NavigateParams params(browser, tab_contents_);
116 params.disposition = CURRENT_TAB; 116 params.disposition = CURRENT_TAB;
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
210 210
211 void WebAuthFlow::InitValidRedirectUrlPrefixes( 211 void WebAuthFlow::InitValidRedirectUrlPrefixes(
212 const std::string& extension_id) { 212 const std::string& extension_id) {
213 valid_prefixes_.push_back(base::StringPrintf( 213 valid_prefixes_.push_back(base::StringPrintf(
214 kChromeExtensionSchemeUrlPattern, extension_id.c_str())); 214 kChromeExtensionSchemeUrlPattern, extension_id.c_str()));
215 valid_prefixes_.push_back(base::StringPrintf( 215 valid_prefixes_.push_back(base::StringPrintf(
216 kChromiumDomainRedirectUrlPattern, extension_id.c_str())); 216 kChromiumDomainRedirectUrlPattern, extension_id.c_str()));
217 } 217 }
218 218
219 } // namespace extensions 219 } // namespace extensions
OLDNEW
« no previous file with comments | « chrome/browser/debugger/devtools_window.cc ('k') | chrome/browser/extensions/api/offscreen_tabs/offscreen_tabs_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698