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

Unified Diff: ui/base/dragdrop/os_exchange_data_provider_win.h

Issue 1103323004: ui/base/dragdrop: Fix warnings found by clang chromium-style plugin on Windows. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 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 | « no previous file | ui/base/dragdrop/os_exchange_data_provider_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/dragdrop/os_exchange_data_provider_win.h
diff --git a/ui/base/dragdrop/os_exchange_data_provider_win.h b/ui/base/dragdrop/os_exchange_data_provider_win.h
index 70ec9fb403518f1b4d1d8a476234ea10b477e9fe..59479ac547ad64e35426841d6b8c159a98dbd897 100644
--- a/ui/base/dragdrop/os_exchange_data_provider_win.h
+++ b/ui/base/dragdrop/os_exchange_data_provider_win.h
@@ -104,17 +104,8 @@ class DataObjectImpl : public DownloadFileObserver,
bool owns_medium;
scoped_refptr<DownloadFileProvider> downloader;
- StoredDataInfo(const FORMATETC& format_etc, STGMEDIUM* medium)
- : format_etc(format_etc), medium(medium), owns_medium(true) {}
-
- ~StoredDataInfo() {
- if (owns_medium) {
- ReleaseStgMedium(medium);
- delete medium;
- }
- if (downloader.get())
- downloader->Stop();
- }
+ StoredDataInfo(const FORMATETC& format_etc, STGMEDIUM* medium);
+ ~StoredDataInfo();
};
typedef ScopedVector<StoredDataInfo> StoredData;
« no previous file with comments | « no previous file | ui/base/dragdrop/os_exchange_data_provider_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698