| OLD | NEW | 
|    1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. |    1 // Copyright (c) 2006-2008 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/bookmarks/bookmark_storage.h" |    5 #include "chrome/browser/bookmarks/bookmark_storage.h" | 
|    6  |    6  | 
|    7 #include "base/compiler_specific.h" |    7 #include "base/compiler_specific.h" | 
|    8 #include "base/file_util.h" |    8 #include "base/file_util.h" | 
|    9 #include "base/file_util_proxy.h" |    9 #include "base/file_util_proxy.h" | 
|   10 #include "base/metrics/histogram.h" |   10 #include "base/metrics/histogram.h" | 
|   11 #include "base/time.h" |   11 #include "base/time.h" | 
|   12 #include "chrome/browser/bookmarks/bookmark_codec.h" |   12 #include "chrome/browser/bookmarks/bookmark_codec.h" | 
|   13 #include "chrome/browser/bookmarks/bookmark_model.h" |   13 #include "chrome/browser/bookmarks/bookmark_model.h" | 
|   14 #include "chrome/browser/browser_thread.h" |   14 #include "chrome/browser/browser_thread.h" | 
|   15 #include "chrome/browser/profile.h" |   15 #include "chrome/browser/profiles/profile.h" | 
|   16 #include "chrome/common/chrome_constants.h" |   16 #include "chrome/common/chrome_constants.h" | 
|   17 #include "chrome/common/json_value_serializer.h" |   17 #include "chrome/common/json_value_serializer.h" | 
|   18 #include "chrome/common/notification_source.h" |   18 #include "chrome/common/notification_source.h" | 
|   19 #include "chrome/common/notification_type.h" |   19 #include "chrome/common/notification_type.h" | 
|   20  |   20  | 
|   21 using base::TimeTicks; |   21 using base::TimeTicks; | 
|   22  |   22  | 
|   23 namespace { |   23 namespace { | 
|   24  |   24  | 
|   25 // Extension used for backup files (copy of main file created during startup). |   25 // Extension used for backup files (copy of main file created during startup). | 
| (...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  259     NOTREACHED(); |  259     NOTREACHED(); | 
|  260     return false; |  260     return false; | 
|  261   } |  261   } | 
|  262  |  262  | 
|  263   std::string data; |  263   std::string data; | 
|  264   if (!SerializeData(&data)) |  264   if (!SerializeData(&data)) | 
|  265     return false; |  265     return false; | 
|  266   writer_.WriteNow(data); |  266   writer_.WriteNow(data); | 
|  267   return true; |  267   return true; | 
|  268 } |  268 } | 
| OLD | NEW |