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
3 // found in the LICENSE file.
5 var thirdPartyPath = '/talkgadget/oauth/chrome-remote-desktop/thirdpartyauth';
7 if (window.location.pathname == thirdPartyPath) {
8 // Chrome may not deliver the message if window.close() is called after
9 // sendMessage(), see crbug.com/444130 . To ensure the message is delivered
10 // wait for a response before closing the window.
11 chrome.extension.sendMessage(
12 window.location.href, function() { window.close(); });