summaryrefslogtreecommitdiff
path: root/chromium/chrome/browser/resources/gaia_auth/success.js
blob: 54ed7fac614cb744125d07c20d37e0ccdd70da78 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// Copyright (c) 2012 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.

function load() {
  var params = getUrlSearchParams(location.search);
  var msg = {
    'method': 'confirmLogin',
    'attemptToken': params['attemptToken']
  };
  window.parent.postMessage(msg,
          'chrome-extension://mfffpogegjflfpflabcdkioaeobkgjik/main.html');
}

document.addEventListener('DOMContentLoaded', load);