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

Side by Side Diff: cloud_print/service/win/cloud_print_service.cc

Issue 10453082: Base: Add a handle verifier to ScopedHandle. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 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 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 "cloud_print/service/win/cloud_print_service.h" 5 #include "cloud_print/service/win/cloud_print_service.h"
6 6
7 #include <iomanip> 7 #include <iomanip>
8 #include <iostream> 8 #include <iostream>
9 9
10 #include "base/at_exit.h" 10 #include "base/at_exit.h"
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 } 46 }
47 47
48 static Handle NullHandle() { 48 static Handle NullHandle() {
49 return NULL; 49 return NULL;
50 } 50 }
51 51
52 private: 52 private:
53 DISALLOW_IMPLICIT_CONSTRUCTORS(ServiceHandleTraits); 53 DISALLOW_IMPLICIT_CONSTRUCTORS(ServiceHandleTraits);
54 }; 54 };
55 55
56 typedef base::win::GenericScopedHandle<ServiceHandleTraits> ServiceHandle; 56 typedef base::win::GenericScopedHandle<
57 ServiceHandleTraits, base::win::DummyVerifierTraits> ServiceHandle;
57 58
58 HRESULT HResultFromLastError() { 59 HRESULT HResultFromLastError() {
59 HRESULT hr = HRESULT_FROM_WIN32(GetLastError()); 60 HRESULT hr = HRESULT_FROM_WIN32(GetLastError());
60 // Something already failed if function called. 61 // Something already failed if function called.
61 if (SUCCEEDED(hr)) 62 if (SUCCEEDED(hr))
62 hr = E_FAIL; 63 hr = E_FAIL;
63 return hr; 64 return hr;
64 } 65 }
65 66
66 void InvalidUsage() { 67 void InvalidUsage() {
(...skipping 312 matching lines...) Expand 10 before | Expand all | Expand 10 after
379 380
380 FilePath user_data_dir_; 381 FilePath user_data_dir_;
381 }; 382 };
382 383
383 CloudPrintServiceModule _AtlModule; 384 CloudPrintServiceModule _AtlModule;
384 385
385 int main() { 386 int main() {
386 base::AtExitManager at_exit; 387 base::AtExitManager at_exit;
387 return _AtlModule.WinMain(0); 388 return _AtlModule.WinMain(0);
388 } 389 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698