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

Side by Side Diff: third_party/WebKit/Source/modules/storage/StorageArea.cpp

Issue 2811523002: Replace ASSERT, ASSERT_NOT_REACHED, and RELEASE_ASSERT in modules/storage (Closed)
Patch Set: rebase Created 3 years, 8 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 Google Inc. All Rights Reserved. 2 * Copyright (C) 2009 Google Inc. All Rights Reserved.
3 * (C) 2008 Apple Inc. 3 * (C) 2008 Apple Inc.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after
238 new_value, page_url, storage)); 238 new_value, page_url, storage));
239 } 239 }
240 if (InspectorDOMStorageAgent* agent = 240 if (InspectorDOMStorageAgent* agent =
241 StorageNamespaceController::From(page)->InspectorAgent()) 241 StorageNamespaceController::From(page)->InspectorAgent())
242 agent->DidDispatchDOMStorageEvent(key, old_value, new_value, 242 agent->DidDispatchDOMStorageEvent(key, old_value, new_value,
243 kSessionStorage, security_origin); 243 kSessionStorage, security_origin);
244 } 244 }
245 245
246 bool StorageArea::IsEventSource(Storage* storage, 246 bool StorageArea::IsEventSource(Storage* storage,
247 WebStorageArea* source_area_instance) { 247 WebStorageArea* source_area_instance) {
248 ASSERT(storage); 248 DCHECK(storage);
249 StorageArea* area = storage->Area(); 249 StorageArea* area = storage->Area();
250 return area->storage_area_.get() == source_area_instance; 250 return area->storage_area_.get() == source_area_instance;
251 } 251 }
252 252
253 } // namespace blink 253 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/modules/storage/Storage.cpp ('k') | third_party/WebKit/Source/modules/storage/StorageNamespace.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698