diff options
author | kmadhusu@chromium.org <kmadhusu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-15 21:55:02 +0000 |
---|---|---|
committer | kmadhusu@chromium.org <kmadhusu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-15 21:55:02 +0000 |
commit | a7d7b63fcffdc10198b4134b6272f589dfacae17 (patch) | |
tree | ed624a27a2e2b05f054b44c2574155c27f18c352 /printing/printing_context_mac.h | |
parent | 32d4f65edef2759379606e9d65c9b4b010595983 (diff) | |
download | chromium_src-a7d7b63fcffdc10198b4134b6272f589dfacae17.zip chromium_src-a7d7b63fcffdc10198b4134b6272f589dfacae17.tar.gz chromium_src-a7d7b63fcffdc10198b4134b6272f589dfacae17.tar.bz2 |
Cleanup: Modify 'NSPrintInfo' raw pointer to a scoped_nsobject.
BUG=none
TEST=printing works after code change.
Review URL: http://codereview.chromium.org/6698035
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@78298 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'printing/printing_context_mac.h')
-rw-r--r-- | printing/printing_context_mac.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/printing/printing_context_mac.h b/printing/printing_context_mac.h index b709460..8e2ba7d 100644 --- a/printing/printing_context_mac.h +++ b/printing/printing_context_mac.h @@ -7,6 +7,7 @@ #include <string> +#include "base/scoped_nsobject.h" #include "printing/printing_context.h" #ifdef __OBJC__ @@ -43,7 +44,7 @@ class PrintingContextMac : public PrintingContext { void ParsePrintInfo(NSPrintInfo* print_info); // The native print info object. - NSPrintInfo* print_info_; + scoped_nsobject<NSPrintInfo> print_info_; // The current page's context; only valid between NewPage and PageDone call // pairs. |