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

Unified Diff: chrome_frame/np_utils.cc

Issue 7276037: Remove NPAPI support from Chrome Frame. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome_frame/np_utils.h ('k') | chrome_frame/npapi_url_request.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome_frame/np_utils.cc
===================================================================
--- chrome_frame/np_utils.cc (revision 90713)
+++ chrome_frame/np_utils.cc (working copy)
@@ -1,45 +0,0 @@
-// 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.
-
-#define NO_NSPR_10_SUPPORT
-#include "chrome_frame/np_utils.h"
-
-#include "chrome_frame/np_browser_functions.h"
-
-namespace np_utils {
-
-std::string GetLocation(NPP instance, NPObject* window) {
- if (!window) {
- // Can fail if the browser is closing (seen in Opera).
- return "";
- }
-
- std::string result;
- ScopedNpVariant href;
- ScopedNpVariant location;
-
- bool ok = npapi::GetProperty(instance,
- window,
- npapi::GetStringIdentifier("location"),
- &location);
- DCHECK(ok);
- DCHECK(location.type == NPVariantType_Object);
-
- if (ok) {
- ok = npapi::GetProperty(instance,
- location.value.objectValue,
- npapi::GetStringIdentifier("href"),
- &href);
- DCHECK(ok);
- DCHECK(href.type == NPVariantType_String);
- if (ok) {
- result.assign(href.value.stringValue.UTF8Characters,
- href.value.stringValue.UTF8Length);
- }
- }
-
- return result;
-}
-
-} // namespace np_utils
« no previous file with comments | « chrome_frame/np_utils.h ('k') | chrome_frame/npapi_url_request.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698