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

Unified Diff: remoting/webapp/me2mom/oauth2_callback.html

Issue 9148043: Rename webapp_it2me to remoting_webapp and move it from webapp/me2mom to webapp/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add webapp_it2me back Created 8 years, 11 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
« no previous file with comments | « remoting/webapp/me2mom/oauth2.js ('k') | remoting/webapp/me2mom/plugin_settings.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/webapp/me2mom/oauth2_callback.html
diff --git a/remoting/webapp/me2mom/oauth2_callback.html b/remoting/webapp/me2mom/oauth2_callback.html
deleted file mode 100644
index da5fe1b56adbf77edd361c63468a6e38b3d7356c..0000000000000000000000000000000000000000
--- a/remoting/webapp/me2mom/oauth2_callback.html
+++ /dev/null
@@ -1,35 +0,0 @@
-<!doctype html>
-<!--
-Copyright (c) 2011 The Chromium Authors. All rights reserved.
-Use of this source code is governed by a BSD-style license that can be
-found in the LICENSE file.
--->
-
-<html>
- <head>
- <script src="oauth2.js"></script>
- <script src="xhr.js"></script>
- </head>
- <body>
- <script>
- function retrieveRefreshToken(query) {
- var parts = query.split('&');
- var queryArgs = {};
- for (var i = 0; i < parts.length; i++) {
- var pair = parts[i].split('=');
- queryArgs[pair[0]] = pair[1];
- }
- if ('code' in queryArgs) {
- var oauth2 = new remoting.OAuth2();
- oauth2.exchangeCodeForToken(queryArgs['code'], function() {
- window.location.replace(chrome.extension.getURL('choice.html'));
- });
- } else {
- window.location.replace(chrome.extension.getURL('choice.html'));
- }
- }
-
- retrieveRefreshToken(window.location.search.substring(1));
- </script>
- </body>
-</html>
« no previous file with comments | « remoting/webapp/me2mom/oauth2.js ('k') | remoting/webapp/me2mom/plugin_settings.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698