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

Side by Side Diff: sky/engine/platform/TracedValue.cpp

Issue 746023002: Make absolute and sort all Sky headers (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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
« no previous file with comments | « sky/engine/platform/TracedValue.h ('k') | sky/engine/platform/TracedValueTest.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "config.h" 5 #include "sky/engine/config.h"
6 6
7 #include "platform/TracedValue.h" 7 #include "sky/engine/platform/TracedValue.h"
8 8
9 #include "platform/JSONValues.h" 9 #include "sky/engine/platform/JSONValues.h"
10 10
11 namespace blink { 11 namespace blink {
12 12
13 namespace { 13 namespace {
14 14
15 String threadSafeCopy(const String& string) 15 String threadSafeCopy(const String& string)
16 { 16 {
17 RefPtr<StringImpl> copy(string.impl()); 17 RefPtr<StringImpl> copy(string.impl());
18 if (string.isSafeToSendToAnotherThread()) 18 if (string.isSafeToSendToAnotherThread())
19 return string; 19 return string;
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 } 133 }
134 134
135 JSONArray* TracedValue::currentArray() const 135 JSONArray* TracedValue::currentArray() const
136 { 136 {
137 ASSERT(!m_stack.isEmpty()); 137 ASSERT(!m_stack.isEmpty());
138 ASSERT(m_stack.last()->type() == JSONValue::TypeArray); 138 ASSERT(m_stack.last()->type() == JSONValue::TypeArray);
139 return static_cast<JSONArray*>(m_stack.last().get()); 139 return static_cast<JSONArray*>(m_stack.last().get());
140 } 140 }
141 141
142 } 142 }
OLDNEW
« no previous file with comments | « sky/engine/platform/TracedValue.h ('k') | sky/engine/platform/TracedValueTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698