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

Side by Side Diff: chrome/browser/sync/syncable/syncable.cc

Issue 338037: linux: fix gcc 4.3 issues (for arm) (Closed)
Patch Set: Created 11 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
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 "chrome/browser/sync/syncable/syncable.h" 5 #include "chrome/browser/sync/syncable/syncable.h"
6 6
7 #include "build/build_config.h" 7 #include "build/build_config.h"
8 8
9 #include <sys/stat.h> 9 #include <sys/stat.h>
10 #if defined(OS_POSIX) 10 #if defined(OS_POSIX)
(...skipping 1610 matching lines...) Expand 10 before | Expand all | Expand 10 after
1621 const ExtendedAttributeKey& key) : 1621 const ExtendedAttributeKey& key) :
1622 ExtendedAttribute(trans, GET_BY_HANDLE, key) { 1622 ExtendedAttribute(trans, GET_BY_HANDLE, key) {
1623 } 1623 }
1624 1624
1625 MutableExtendedAttribute::MutableExtendedAttribute( 1625 MutableExtendedAttribute::MutableExtendedAttribute(
1626 WriteTransaction* trans, Create, const ExtendedAttributeKey& key) { 1626 WriteTransaction* trans, Create, const ExtendedAttributeKey& key) {
1627 Directory::Kernel* const kernel = trans->directory()->kernel_; 1627 Directory::Kernel* const kernel = trans->directory()->kernel_;
1628 ScopedKernelLock lock(trans->directory()); 1628 ScopedKernelLock lock(trans->directory());
1629 if (!Init(trans, kernel, &lock, key)) { 1629 if (!Init(trans, kernel, &lock, key)) {
1630 ExtendedAttributeValue val; 1630 ExtendedAttributeValue val;
1631 val.is_deleted = false;
ncarter (slow) 2009/10/27 20:13:51 Ouch. Thanks.
1631 val.dirty = true; 1632 val.dirty = true;
1632 i_ = kernel->extended_attributes->insert(std::make_pair(key, val)).first; 1633 i_ = kernel->extended_attributes->insert(std::make_pair(key, val)).first;
1633 good_ = true; 1634 good_ = true;
1634 } 1635 }
1635 } 1636 }
1636 1637
1637 bool IsLegalNewParent(BaseTransaction* trans, const Id& entry_id, 1638 bool IsLegalNewParent(BaseTransaction* trans, const Id& entry_id,
1638 const Id& new_parent_id) { 1639 const Id& new_parent_id) {
1639 if (entry_id.IsRoot()) 1640 if (entry_id.IsRoot())
1640 return false; 1641 return false;
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after
1844 return s << std::dec; 1845 return s << std::dec;
1845 } 1846 }
1846 1847
1847 FastDump& operator<<(FastDump& dump, const syncable::Blob& blob) { 1848 FastDump& operator<<(FastDump& dump, const syncable::Blob& blob) {
1848 if (blob.empty()) 1849 if (blob.empty())
1849 return dump; 1850 return dump;
1850 string buffer(HexEncode(&blob[0], blob.size())); 1851 string buffer(HexEncode(&blob[0], blob.size()));
1851 dump.out_->sputn(buffer.c_str(), buffer.size()); 1852 dump.out_->sputn(buffer.c_str(), buffer.size());
1852 return dump; 1853 return dump;
1853 } 1854 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698