diff options
author | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-10-28 22:58:21 +0000 |
---|---|---|
committer | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-10-28 22:58:21 +0000 |
commit | 1c881579a18422fce67276901b8cf9f0146b40fb (patch) | |
tree | 2103459982819f9461bf004e8aa8f2d9bdbf0e05 /content/common/mac | |
parent | e0f6b6fc4c7cb55b37be37ccd7dcb1e9a0929f2b (diff) | |
download | chromium_src-1c881579a18422fce67276901b8cf9f0146b40fb.zip chromium_src-1c881579a18422fce67276901b8cf9f0146b40fb.tar.gz chromium_src-1c881579a18422fce67276901b8cf9f0146b40fb.tar.bz2 |
Revert 107815 - Convert the non-debug logging in chrome/common to debug logging.
Review URL: http://codereview.chromium.org/8370022
TBR=brettw@chromium.org
Review URL: http://codereview.chromium.org/8413057
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@107816 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/common/mac')
-rw-r--r-- | content/common/mac/font_descriptor_unittest.mm | 6 | ||||
-rw-r--r-- | content/common/mac/font_loader.mm | 22 |
2 files changed, 14 insertions, 14 deletions
diff --git a/content/common/mac/font_descriptor_unittest.mm b/content/common/mac/font_descriptor_unittest.mm index f3ce5e9..7054c22 100644 --- a/content/common/mac/font_descriptor_unittest.mm +++ b/content/common/mac/font_descriptor_unittest.mm @@ -26,7 +26,7 @@ bool CompareFonts(NSFont* font1, NSFont* font2) { ATSFontRef id2 = CTFontGetPlatformFont(reinterpret_cast<CTFontRef>(font2), 0); if (id1 != id2) { - DLOG(ERROR) << "ATSFontRefs for " + LOG(ERROR) << "ATSFontRefs for " << [[font1 fontName] UTF8String] << " and " << [[font2 fontName] UTF8String] @@ -37,7 +37,7 @@ bool CompareFonts(NSFont* font1, NSFont* font2) { CGFloat size1 = [font1 pointSize]; CGFloat size2 = [font2 pointSize]; if (size1 != size2) { - DLOG(ERROR) << "font sizes for " + LOG(ERROR) << "font sizes for " << [[font1 fontName] UTF8String] << " (" << size1 << ")" << "and" << [[font2 fontName] UTF8String] << " (" << size2 << ")" @@ -56,7 +56,7 @@ bool CompareFonts(NSFont* font1, NSFont* font2) { bool is_italic2 = traits2 & NSItalicFontMask; if (is_bold1 != is_bold2 || is_italic1 != is_italic2) { - DLOG(ERROR) << "Style information for " + LOG(ERROR) << "Style information for " << [[font1 fontName] UTF8String] << " and " << [[font2 fontName] UTF8String] diff --git a/content/common/mac/font_loader.mm b/content/common/mac/font_loader.mm index a6bf6f0..e62a861 100644 --- a/content/common/mac/font_loader.mm +++ b/content/common/mac/font_loader.mm @@ -56,9 +56,9 @@ bool FontLoader::LoadFontIntoBuffer(NSFont* font_to_encode, base::SharedMemory* font_data, uint32* font_data_size, uint32* font_id) { - DCHECK(font_data); - DCHECK(font_data_size); - DCHECK(font_id); + CHECK(font_data); + CHECK(font_data_size); + CHECK(font_id); *font_data_size = 0; *font_id = 0; @@ -67,7 +67,7 @@ bool FontLoader::LoadFontIntoBuffer(NSFont* font_to_encode, // Load appropriate NSFont. if (!font_to_encode) { - DLOG(ERROR) << "Failed to load font " << font_name; + LOG(ERROR) << "Failed to load font " << font_name; return false; } @@ -75,7 +75,7 @@ bool FontLoader::LoadFontIntoBuffer(NSFont* font_to_encode, ATSFontRef ats_font = CTFontGetPlatformFont(reinterpret_cast<CTFontRef>(font_to_encode), NULL); if (!ats_font) { - DLOG(ERROR) << "Conversion to ATSFontRef failed for " << font_name; + LOG(ERROR) << "Conversion to ATSFontRef failed for " << font_name; return false; } @@ -86,7 +86,7 @@ bool FontLoader::LoadFontIntoBuffer(NSFont* font_to_encode, uint32_cant_hold_fontcontainer_ref); ATSFontContainerRef fontContainer = kATSFontContainerRefUnspecified; if (ATSFontGetContainer(ats_font, 0, &fontContainer) != noErr) { - DLOG(ERROR) << "Failed to get font container ref for " << font_name; + LOG(ERROR) << "Failed to get font container ref for " << font_name; return false; } @@ -100,7 +100,7 @@ bool FontLoader::LoadFontIntoBuffer(NSFont* font_to_encode, // since the font now lives in memory as far as it's concerned. FSRef font_fsref; if (ATSFontGetFileReference(ats_font, &font_fsref) != noErr) { - DLOG(ERROR) << "Failed to find font file for " << font_name; + LOG(ERROR) << "Failed to find font file for " << font_name; return false; } FilePath font_path = FilePath(base::mac::PathFromFSRef(font_fsref)); @@ -108,18 +108,18 @@ bool FontLoader::LoadFontIntoBuffer(NSFont* font_to_encode, // Load file into shared memory buffer. int64 font_file_size_64 = -1; if (!file_util::GetFileSize(font_path, &font_file_size_64)) { - DLOG(ERROR) << "Couldn't get font file size for " << font_path.value(); + LOG(ERROR) << "Couldn't get font file size for " << font_path.value(); return false; } if (font_file_size_64 <= 0 || font_file_size_64 >= kint32max) { - DLOG(ERROR) << "Bad size for font file " << font_path.value(); + LOG(ERROR) << "Bad size for font file " << font_path.value(); return false; } int32 font_file_size_32 = static_cast<int32>(font_file_size_64); if (!font_data->CreateAndMapAnonymous(font_file_size_32)) { - DLOG(ERROR) << "Failed to create shmem area for " << font_name; + LOG(ERROR) << "Failed to create shmem area for " << font_name; return false; } @@ -127,7 +127,7 @@ bool FontLoader::LoadFontIntoBuffer(NSFont* font_to_encode, reinterpret_cast<char*>(font_data->memory()), font_file_size_32); if (amt_read != font_file_size_32) { - DLOG(ERROR) << "Failed to read font data for " << font_path.value(); + LOG(ERROR) << "Failed to read font data for " << font_path.value(); return false; } |