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

Side by Side Diff: chrome/default_plugin/plugin_impl_aura.cc

Issue 8473001: Show missing plug-in infobar only if a plug-in is available. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 1 month 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/default_plugin/plugin_impl_gtk.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/default_plugin/plugin_impl_aura.h" 5 #include "chrome/default_plugin/plugin_impl_aura.h"
6 6
7 #include "base/file_util.h" 7 #include "base/file_util.h"
8 #include "base/path_service.h" 8 #include "base/path_service.h"
9 #include "base/string_util.h" 9 #include "base/string_util.h"
10 #include "chrome/common/chrome_plugin_messages.h" 10 #include "chrome/common/chrome_plugin_messages.h"
(...skipping 18 matching lines...) Expand all
29 char* argv[]) { 29 char* argv[]) {
30 DVLOG(1) << __FUNCTION__ << " MIME Type : " << mime_type; 30 DVLOG(1) << __FUNCTION__ << " MIME Type : " << mime_type;
31 DCHECK(instance != NULL); 31 DCHECK(instance != NULL);
32 32
33 if (mime_type == NULL || strlen(mime_type) == 0) { 33 if (mime_type == NULL || strlen(mime_type) == 0) {
34 DLOG(WARNING) << __FUNCTION__ << " Invalid parameters passed in"; 34 DLOG(WARNING) << __FUNCTION__ << " Invalid parameters passed in";
35 NOTREACHED(); 35 NOTREACHED();
36 return false; 36 return false;
37 } 37 }
38 38
39 return PluginInstallerBase::Initialize(module_handle, instance, mime_type, 39 PluginInstallerBase::SetRoutingIds(argc, argn, argv);
40 argc, argn, argv); 40 return true;
41 } 41 }
42 42
43 bool PluginInstallerImpl::NPP_SetWindow(NPWindow* window_info) { 43 bool PluginInstallerImpl::NPP_SetWindow(NPWindow* window_info) {
44 NOTIMPLEMENTED(); 44 NOTIMPLEMENTED();
45 return true; 45 return true;
46 } 46 }
47 47
48 void PluginInstallerImpl::Shutdown() { 48 void PluginInstallerImpl::Shutdown() {
49 } 49 }
50 50
(...skipping 14 matching lines...) Expand all
65 int32 buffer_length, void* buffer) { 65 int32 buffer_length, void* buffer) {
66 return true; 66 return true;
67 } 67 }
68 68
69 void PluginInstallerImpl::URLNotify(const char* url, NPReason reason) { 69 void PluginInstallerImpl::URLNotify(const char* url, NPReason reason) {
70 } 70 }
71 71
72 int16 PluginInstallerImpl::NPP_HandleEvent(void* event) { 72 int16 PluginInstallerImpl::NPP_HandleEvent(void* event) {
73 return 0; 73 return 0;
74 } 74 }
OLDNEW
« no previous file with comments | « no previous file | chrome/default_plugin/plugin_impl_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698