summaryrefslogtreecommitdiffstats
path: root/printing/printing_context_mac.h
diff options
context:
space:
mode:
authorkmadhusu@chromium.org <kmadhusu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-15 21:55:02 +0000
committerkmadhusu@chromium.org <kmadhusu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-15 21:55:02 +0000
commita7d7b63fcffdc10198b4134b6272f589dfacae17 (patch)
treeed624a27a2e2b05f054b44c2574155c27f18c352 /printing/printing_context_mac.h
parent32d4f65edef2759379606e9d65c9b4b010595983 (diff)
downloadchromium_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.h3
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.