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

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

Issue 2615953003: Rename IGNORE_EXCEPTION to IGNORE_EXCEPTION_FOR_TESTING (Closed)
Patch Set: temp Created 3 years, 11 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 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "modules/storage/DOMWindowStorageController.h" 5 #include "modules/storage/DOMWindowStorageController.h"
6 6
7 #include "core/dom/Document.h" 7 #include "core/dom/Document.h"
8 #include "core/events/Event.h" 8 #include "core/events/Event.h"
9 #include "core/page/Page.h" 9 #include "core/page/Page.h"
10 #include "modules/storage/DOMWindowStorage.h" 10 #include "modules/storage/DOMWindowStorage.h"
(...skipping 29 matching lines...) Expand all
40 } 40 }
41 41
42 void DOMWindowStorageController::didAddEventListener( 42 void DOMWindowStorageController::didAddEventListener(
43 LocalDOMWindow* window, 43 LocalDOMWindow* window,
44 const AtomicString& eventType) { 44 const AtomicString& eventType) {
45 if (eventType == EventTypeNames::storage) { 45 if (eventType == EventTypeNames::storage) {
46 // Creating these blink::Storage objects informs the system that we'd like 46 // Creating these blink::Storage objects informs the system that we'd like
47 // to receive notifications about storage events that might be triggered in 47 // to receive notifications about storage events that might be triggered in
48 // other processes. Rather than subscribe to these notifications explicitly, 48 // other processes. Rather than subscribe to these notifications explicitly,
49 // we subscribe to them implicitly to simplify the work done by the system. 49 // we subscribe to them implicitly to simplify the work done by the system.
50 DOMWindowStorage::from(*window).localStorage(IGNORE_EXCEPTION); 50 DOMWindowStorage::from(*window).localStorage(IGNORE_EXCEPTION_FOR_TESTING);
51 DOMWindowStorage::from(*window).sessionStorage(IGNORE_EXCEPTION); 51 DOMWindowStorage::from(*window).sessionStorage(
52 IGNORE_EXCEPTION_FOR_TESTING);
52 } 53 }
53 } 54 }
54 55
55 } // namespace blink 56 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698