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

Side by Side Diff: components/subresource_filter/core/common/activation_state.cc

Issue 2022783002: Skeleton of the Safe Browsing Subresource Filter. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "components/subresource_filter/core/common/activation_state.h"
6
7 #include <ostream>
8
9 #include "base/logging.h"
10
11 namespace subresource_filter {
12
13 std::ostream& operator<<(std::ostream& os, const ActivationState& state) {
14 switch (state) {
15 case ActivationState::DISABLED:
16 os << "DISABLED";
17 break;
18 case ActivationState::DRYRUN:
19 os << "DRYRUN";
20 break;
21 case ActivationState::ENABLED:
22 os << "ENABLED";
23 break;
24 default:
25 NOTREACHED();
26 break;
battre 2016/05/30 15:29:25 how about replacing default with LAST? The compile
engedy 2016/05/30 20:54:00 Could you please elaborate?
battre 2016/05/31 08:28:32 switch(state) { case ActivationState::DISABLED:
engedy 2016/05/31 08:58:16 Are you sure we want to depend on non-standardized
27 }
28 return os;
29 }
30
31 } // namespace subresource_filter
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698