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

Side by Side Diff: chrome/browser/bookmarks/bookmark_storage.cc

Issue 6594063: Update a bunch of files to the new location of browser_thread.h (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « chrome/browser/bookmarks/bookmark_html_writer.cc ('k') | chrome/browser/browser_main_posix.cc » ('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 (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"
15 #include "chrome/browser/profiles/profile.h" 14 #include "chrome/browser/profiles/profile.h"
16 #include "chrome/common/chrome_constants.h" 15 #include "chrome/common/chrome_constants.h"
17 #include "chrome/common/json_value_serializer.h" 16 #include "chrome/common/json_value_serializer.h"
18 #include "chrome/common/notification_source.h" 17 #include "chrome/common/notification_source.h"
19 #include "chrome/common/notification_type.h" 18 #include "chrome/common/notification_type.h"
19 #include "content/browser/browser_thread.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).
26 const FilePath::CharType kBackupExtension[] = FILE_PATH_LITERAL("bak"); 26 const FilePath::CharType kBackupExtension[] = FILE_PATH_LITERAL("bak");
27 27
28 // How often we save. 28 // How often we save.
29 const int kSaveDelayMS = 2500; 29 const int kSaveDelayMS = 2500;
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 }
OLDNEW
« no previous file with comments | « chrome/browser/bookmarks/bookmark_html_writer.cc ('k') | chrome/browser/browser_main_posix.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698