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

Side by Side Diff: chrome/browser/net/gaia/gaia_oauth_fetcher.cc

Issue 10537062: TabContentsWrapper -> TabContents, part 13. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fiz Created 8 years, 6 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
« no previous file with comments | « chrome/browser/extensions/extension_tab_util.cc ('k') | chrome/browser/ui/browser.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/net/gaia/gaia_oauth_fetcher.h" 5 #include "chrome/browser/net/gaia/gaia_oauth_fetcher.h"
6 6
7 #include <string> 7 #include <string>
8 #include <utility> 8 #include <utility>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after
285 void OpenGetOAuthTokenURL(Browser* browser, 285 void OpenGetOAuthTokenURL(Browser* browser,
286 const GURL& url, 286 const GURL& url,
287 const content::Referrer& referrer, 287 const content::Referrer& referrer,
288 WindowOpenDisposition disposition, 288 WindowOpenDisposition disposition,
289 content::PageTransition transition) { 289 content::PageTransition transition) {
290 browser::NavigateParams params( 290 browser::NavigateParams params(
291 browser, 291 browser,
292 url, 292 url,
293 content::PAGE_TRANSITION_AUTO_BOOKMARK); 293 content::PAGE_TRANSITION_AUTO_BOOKMARK);
294 params.source_contents = browser->tab_strip_model()->GetTabContentsAt( 294 params.source_contents = browser->tab_strip_model()->GetTabContentsAt(
295 browser->tab_strip_model()->GetWrapperIndex(NULL)); 295 browser->tab_strip_model()->GetIndexOfWebContents(NULL));
296 params.referrer = referrer; 296 params.referrer = referrer;
297 params.disposition = disposition; 297 params.disposition = disposition;
298 params.tabstrip_add_types = TabStripModel::ADD_NONE; 298 params.tabstrip_add_types = TabStripModel::ADD_NONE;
299 params.window_action = browser::NavigateParams::SHOW_WINDOW; 299 params.window_action = browser::NavigateParams::SHOW_WINDOW;
300 params.window_bounds = gfx::Rect(380, 520); 300 params.window_bounds = gfx::Rect(380, 520);
301 params.user_gesture = true; 301 params.user_gesture = true;
302 browser::Navigate(&params); 302 browser::Navigate(&params);
303 } 303 }
304 } 304 }
305 305
(...skipping 402 matching lines...) Expand 10 before | Expand all | Expand 10 after
708 break; 708 break;
709 case OAUTH2_REVOKE_TOKEN: 709 case OAUTH2_REVOKE_TOKEN:
710 OnOAuthRevokeTokenFetched(data, status, response_code); 710 OnOAuthRevokeTokenFetched(data, status, response_code);
711 break; 711 break;
712 } 712 }
713 } 713 }
714 714
715 bool GaiaOAuthFetcher::ShouldAutoFetch(RequestType fetch_step) { 715 bool GaiaOAuthFetcher::ShouldAutoFetch(RequestType fetch_step) {
716 return fetch_step <= auto_fetch_limit_; 716 return fetch_step <= auto_fetch_limit_;
717 } 717 }
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_tab_util.cc ('k') | chrome/browser/ui/browser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698