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

Side by Side Diff: chrome/common/chrome_content_client.cc

Issue 25849004: Clean up unused constant globals (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 2 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 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/common/chrome_content_client.h" 5 #include "chrome/common/chrome_content_client.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/cpu.h" 8 #include "base/cpu.h"
9 #include "base/debug/crash_logging.h" 9 #include "base/debug/crash_logging.h"
10 #include "base/file_util.h" 10 #include "base/file_util.h"
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 "Chrome Remote Desktop</a> webapp."; 115 "Chrome Remote Desktop</a> webapp.";
116 // Use a consistent MIME-type regardless of branding. 116 // Use a consistent MIME-type regardless of branding.
117 const char kRemotingViewerPluginMimeType[] = 117 const char kRemotingViewerPluginMimeType[] =
118 "application/vnd.chromium.remoting-viewer"; 118 "application/vnd.chromium.remoting-viewer";
119 const char kRemotingViewerPluginMimeExtension[] = ""; 119 const char kRemotingViewerPluginMimeExtension[] = "";
120 const char kRemotingViewerPluginMimeDescription[] = ""; 120 const char kRemotingViewerPluginMimeDescription[] = "";
121 const uint32 kRemotingViewerPluginPermissions = ppapi::PERMISSION_PRIVATE | 121 const uint32 kRemotingViewerPluginPermissions = ppapi::PERMISSION_PRIVATE |
122 ppapi::PERMISSION_DEV; 122 ppapi::PERMISSION_DEV;
123 #endif // defined(ENABLE_REMOTING) 123 #endif // defined(ENABLE_REMOTING)
124 124
125 #if defined(OS_MACOSX) && !defined(OS_IOS)
125 const char kInterposeLibraryPath[] = 126 const char kInterposeLibraryPath[] =
126 "@executable_path/../../../libplugin_carbon_interpose.dylib"; 127 "@executable_path/../../../libplugin_carbon_interpose.dylib";
128 #endif // defined(OS_MACOSX) && !defined(OS_IOS)
127 129
128 // Appends the known built-in plugins to the given vector. Some built-in 130 // Appends the known built-in plugins to the given vector. Some built-in
129 // plugins are "internal" which means they are compiled into the Chrome binary, 131 // plugins are "internal" which means they are compiled into the Chrome binary,
130 // and some are extra shared libraries distributed with the browser (these are 132 // and some are extra shared libraries distributed with the browser (these are
131 // not marked internal, aside from being automatically registered, they're just 133 // not marked internal, aside from being automatically registered, they're just
132 // regular plugins). 134 // regular plugins).
133 void ComputeBuiltInPlugins(std::vector<content::PepperPluginInfo>* plugins) { 135 void ComputeBuiltInPlugins(std::vector<content::PepperPluginInfo>* plugins) {
134 // PDF. 136 // PDF.
135 // 137 //
136 // Once we're sandboxed, we can't know if the PDF plugin is available or not; 138 // Once we're sandboxed, we can't know if the PDF plugin is available or not;
(...skipping 393 matching lines...) Expand 10 before | Expand all | Expand 10 after
530 } 532 }
531 return false; 533 return false;
532 } 534 }
533 535
534 std::string ChromeContentClient::GetCarbonInterposePath() const { 536 std::string ChromeContentClient::GetCarbonInterposePath() const {
535 return std::string(kInterposeLibraryPath); 537 return std::string(kInterposeLibraryPath);
536 } 538 }
537 #endif 539 #endif
538 540
539 } // namespace chrome 541 } // namespace chrome
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698