summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--chrome/browser/net/gaia/token_service.cc6
-rw-r--r--net/spdy/spdy_session.cc2
-rw-r--r--webkit/glue/plugins/pepper_private.cc16
-rw-r--r--webkit/glue/plugins/pepper_transport.cc4
-rw-r--r--webkit/glue/webvideoframe_impl.cc8
5 files changed, 18 insertions, 18 deletions
diff --git a/chrome/browser/net/gaia/token_service.cc b/chrome/browser/net/gaia/token_service.cc
index b61ab62..9562e34 100644
--- a/chrome/browser/net/gaia/token_service.cc
+++ b/chrome/browser/net/gaia/token_service.cc
@@ -18,7 +18,7 @@
const char* TokenService::kServices[] = {GaiaConstants::kSyncService,
GaiaConstants::kTalkService};
TokenService::TokenService()
- : token_loading_query_(NULL) {
+ : token_loading_query_(0) {
DCHECK(ChromeThread::CurrentlyOn(ChromeThread::UI));
}
@@ -56,7 +56,7 @@ void TokenService::ResetCredentialsInMemory() {
// Cancel pending loads. Callbacks will not return.
if (token_loading_query_) {
web_data_service_->CancelRequest(token_loading_query_);
- token_loading_query_ = NULL;
+ token_loading_query_ = 0;
}
token_map_.clear();
@@ -181,7 +181,7 @@ void TokenService::OnWebDataServiceRequestDone(WebDataService::Handle h,
const WDTypedResult* result) {
DCHECK(ChromeThread::CurrentlyOn(ChromeThread::UI));
DCHECK(token_loading_query_);
- token_loading_query_ = NULL;
+ token_loading_query_ = 0;
// If the fetch failed, there will be no result. In that case, we just don't
// load any tokens at all from the DB.
diff --git a/net/spdy/spdy_session.cc b/net/spdy/spdy_session.cc
index 4592f3b..941569b 100644
--- a/net/spdy/spdy_session.cc
+++ b/net/spdy/spdy_session.cc
@@ -363,7 +363,7 @@ int SpdySession::GetPushStream(
streams_pushed_and_claimed_count_++;
return OK;
}
- return NULL;
+ return 0;
}
int SpdySession::CreateStream(
diff --git a/webkit/glue/plugins/pepper_private.cc b/webkit/glue/plugins/pepper_private.cc
index 3a09656..e35006b 100644
--- a/webkit/glue/plugins/pepper_private.cc
+++ b/webkit/glue/plugins/pepper_private.cc
@@ -94,29 +94,29 @@ PP_Resource GetResourceImage(PP_Module module_id, PP_ResourceImage image_id) {
}
}
if (res_id == 0)
- return NULL;
+ return 0;
SkBitmap* res_bitmap =
ResourceBundle::GetSharedInstance().GetBitmapNamed(res_id);
PluginModule* module = PluginModule::FromPPModule(module_id);
if (!module)
- return NULL;
+ return 0;
scoped_refptr<pepper::ImageData> image_data(new pepper::ImageData(module));
if (!image_data->Init(PP_IMAGEDATAFORMAT_BGRA_PREMUL,
res_bitmap->width(), res_bitmap->height(), false)) {
- return NULL;
+ return 0;
}
ImageDataAutoMapper mapper(image_data);
if (!mapper.is_valid())
- return NULL;
+ return 0;
skia::PlatformCanvas* canvas = image_data->mapped_canvas();
SkBitmap& ret_bitmap =
const_cast<SkBitmap&>(canvas->getTopPlatformDevice().accessBitmap(true));
if (!res_bitmap->copyTo(&ret_bitmap, SkBitmap::kARGB_8888_Config, NULL)) {
- return NULL;
+ return 0;
}
return image_data->GetReference();
@@ -128,14 +128,14 @@ PP_Resource GetFontFileWithFallback(
#if defined(OS_LINUX)
PluginModule* module = PluginModule::FromPPModule(module_id);
if (!module)
- return NULL;
+ return 0;
int fd = webkit_glue::MatchFontWithFallback(description->face,
description->weight >= 700,
description->italic,
description->charset);
if (fd == -1)
- return NULL;
+ return 0;
scoped_refptr<PrivateFontFile> font(new PrivateFontFile(module, fd));
@@ -143,7 +143,7 @@ PP_Resource GetFontFileWithFallback(
#else
// For trusted pepper plugins, this is only needed in Linux since font loading
// on Windows and Mac works through the renderer sandbox.
- return false;
+ return 0;
#endif
}
diff --git a/webkit/glue/plugins/pepper_transport.cc b/webkit/glue/plugins/pepper_transport.cc
index 0b650d2..ed5e05f 100644
--- a/webkit/glue/plugins/pepper_transport.cc
+++ b/webkit/glue/plugins/pepper_transport.cc
@@ -20,7 +20,7 @@ PP_Resource CreateTransport(PP_Module module,
const char* name,
const char* proto) {
// TODO(juberti): implement me
- PP_Resource p(NULL);
+ PP_Resource p(0);
return p;
}
@@ -68,7 +68,7 @@ int32_t GetNextAddress(PP_Resource transport,
// from the remote peer.
int32_t ReceiveRemoteAddress(PP_Resource transport,
PP_Var address) {
- // TODO(juberti): impelement me
+ // TODO(juberti): implement me
return 0;
}
diff --git a/webkit/glue/webvideoframe_impl.cc b/webkit/glue/webvideoframe_impl.cc
index e1195a7..a838cd6 100644
--- a/webkit/glue/webvideoframe_impl.cc
+++ b/webkit/glue/webvideoframe_impl.cc
@@ -60,25 +60,25 @@ WebVideoFrame::Format WebVideoFrameImpl::format() const {
unsigned WebVideoFrameImpl::width() const {
if (video_frame_.get())
return video_frame_->width();
- return NULL;
+ return 0;
}
unsigned WebVideoFrameImpl::height() const {
if (video_frame_.get())
return video_frame_->height();
- return NULL;
+ return 0;
}
unsigned WebVideoFrameImpl::planes() const {
if (video_frame_.get())
return video_frame_->planes();
- return NULL;
+ return 0;
}
int WebVideoFrameImpl::stride(unsigned plane) const {
if (video_frame_.get())
return static_cast<int>(video_frame_->stride(plane));
- return NULL;
+ return 0;
}
const void* WebVideoFrameImpl::data(unsigned plane) const {