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

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

Issue 10535077: TabContentsWrapper -> TabContents, part 12. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase 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
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/identity_api.h" 5 #include "chrome/browser/extensions/api/identity/identity_api.h"
6 6
7 #include "base/values.h" 7 #include "base/values.h"
8 #include "chrome/browser/extensions/extension_function_dispatcher.h" 8 #include "chrome/browser/extensions/extension_function_dispatcher.h"
9 #include "chrome/browser/signin/token_service.h" 9 #include "chrome/browser/signin/token_service.h"
10 #include "chrome/browser/signin/token_service_factory.h" 10 #include "chrome/browser/signin/token_service_factory.h"
11 #include "chrome/browser/ui/browser.h" 11 #include "chrome/browser/ui/browser.h"
12 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h" 12 #include "chrome/browser/ui/tab_contents/tab_contents.h"
13 #include "chrome/common/extensions/extension.h" 13 #include "chrome/common/extensions/extension.h"
14 #include "googleurl/src/gurl.h" 14 #include "googleurl/src/gurl.h"
15 15
16 namespace extensions { 16 namespace extensions {
17 17
18 namespace { 18 namespace {
19 19
20 const char kInvalidClientId[] = "Invalid OAuth2 Client ID."; 20 const char kInvalidClientId[] = "Invalid OAuth2 Client ID.";
21 const char kInvalidScopes[] = "Invalid OAuth2 scopes."; 21 const char kInvalidScopes[] = "Invalid OAuth2 scopes.";
22 const char kInvalidRedirect[] = "Did not redirect to the right URL."; 22 const char kInvalidRedirect[] = "Did not redirect to the right URL.";
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 Release(); // Balanced in RunImpl. 102 Release(); // Balanced in RunImpl.
103 } 103 }
104 104
105 void LaunchWebAuthFlowFunction::OnAuthFlowFailure() { 105 void LaunchWebAuthFlowFunction::OnAuthFlowFailure() {
106 error_ = kInvalidRedirect; 106 error_ = kInvalidRedirect;
107 SendResponse(false); 107 SendResponse(false);
108 Release(); // Balanced in RunImpl. 108 Release(); // Balanced in RunImpl.
109 } 109 }
110 110
111 } // namespace extensions 111 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698