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

Unified Diff: trunk/src/chrome/browser/ui/webui/print_preview/print_preview_handler.h

Issue 13898008: Revert 194782 "Native api to get OAuth2 access tokens in Print P..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 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 side-by-side diff with in-line comments
Download patch
Index: trunk/src/chrome/browser/ui/webui/print_preview/print_preview_handler.h
===================================================================
--- trunk/src/chrome/browser/ui/webui/print_preview/print_preview_handler.h (revision 194799)
+++ trunk/src/chrome/browser/ui/webui/print_preview/print_preview_handler.h (working copy)
@@ -115,9 +115,6 @@
// |args| is unused.
void HandleSignin(const base::ListValue* args);
- // Generates new token and sends back to UI.
- void HandleGetAccessToken(const base::ListValue* args);
-
// Brings up a web page to allow the user to configure cloud print.
// |args| is unused.
void HandleManageCloudPrint(const base::ListValue* args);
@@ -154,10 +151,6 @@
const std::string& default_printer,
const std::string& cloud_print_data);
- // Send OAuth2 access token.
- void SendAccessToken(const std::string& type,
- const std::string& access_token);
-
// Sends the printer capabilities to the Web UI. |settings_info| contains
// printer capabilities information.
void SendPrinterCapabilities(const base::DictionaryValue& settings_info);
@@ -205,8 +198,6 @@
bool GetPreviewDataAndTitle(scoped_refptr<base::RefCountedBytes>* data,
string16* title) const;
- void InitTokenService();
-
// Pointer to current print system.
scoped_refptr<printing::PrintBackend> print_backend_;
@@ -231,10 +222,6 @@
// exists.
scoped_ptr<base::FilePath> print_to_pdf_path_;
- // Holds token service to get OAuth2 access tokens.
- class AccessTokenService;
- scoped_ptr<AccessTokenService> token_service_;
-
DISALLOW_COPY_AND_ASSIGN(PrintPreviewHandler);
};

Powered by Google App Engine
This is Rietveld 408576698