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

Side by Side Diff: ppapi/proxy/ppb_flash_clipboard_proxy.cc

Issue 8371020: Fix warning in release mode. (Closed) Base URL: svn://chrome-svn/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 | no next file » | 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 "ppapi/proxy/ppb_flash_clipboard_proxy.h" 5 #include "ppapi/proxy/ppb_flash_clipboard_proxy.h"
6 6
7 #include "ppapi/c/pp_errors.h" 7 #include "ppapi/c/pp_errors.h"
8 #include "ppapi/c/private/ppb_flash_clipboard.h" 8 #include "ppapi/c/private/ppb_flash_clipboard.h"
9 #include "ppapi/proxy/plugin_dispatcher.h" 9 #include "ppapi/proxy/plugin_dispatcher.h"
10 #include "ppapi/proxy/ppapi_messages.h" 10 #include "ppapi/proxy/ppapi_messages.h"
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 int clipboard_type, 141 int clipboard_type,
142 SerializedVarReceiveInput text) { 142 SerializedVarReceiveInput text) {
143 EnterFlashClipboardNoLock enter(instance, true); 143 EnterFlashClipboardNoLock enter(instance, true);
144 if (enter.succeeded()) { 144 if (enter.succeeded()) {
145 int32_t result = enter.functions()->WritePlainText( 145 int32_t result = enter.functions()->WritePlainText(
146 instance, 146 instance,
147 static_cast<PP_Flash_Clipboard_Type>(clipboard_type), 147 static_cast<PP_Flash_Clipboard_Type>(clipboard_type),
148 text.Get(dispatcher())); 148 text.Get(dispatcher()));
149 DLOG_IF(WARNING, result != PP_OK) 149 DLOG_IF(WARNING, result != PP_OK)
150 << "Write to clipboard failed unexpectedly."; 150 << "Write to clipboard failed unexpectedly.";
151 (void)result; // Prevent warning in release mode.
151 } 152 }
152 } 153 }
153 154
154 } // namespace proxy 155 } // namespace proxy
155 } // namespace ppapi 156 } // namespace ppapi
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698