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

Side by Side Diff: chrome/browser/chromeos/gdata/drive_sync_client.cc

Issue 10915226: OBSOLETE - Move drive.proto to browser/google_apis directory (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 8 years, 3 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/chromeos/gdata/drive_sync_client.h" 5 #include "chrome/browser/chromeos/gdata/drive_sync_client.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
11 #include "base/message_loop_proxy.h" 11 #include "base/message_loop_proxy.h"
12 #include "chrome/browser/api/prefs/pref_change_registrar.h" 12 #include "chrome/browser/api/prefs/pref_change_registrar.h"
13 #include "chrome/browser/chromeos/gdata/drive.pb.h" 13 #include "chrome/browser/google_apis/drive.pb.h"
14 #include "chrome/browser/prefs/pref_service.h" 14 #include "chrome/browser/prefs/pref_service.h"
15 #include "chrome/browser/profiles/profile.h" 15 #include "chrome/browser/profiles/profile.h"
16 #include "chrome/common/pref_names.h" 16 #include "chrome/common/pref_names.h"
17 #include "content/public/browser/browser_thread.h" 17 #include "content/public/browser/browser_thread.h"
18 18
19 using content::BrowserThread; 19 using content::BrowserThread;
20 20
21 namespace gdata { 21 namespace gdata {
22 22
23 namespace { 23 namespace {
(...skipping 424 matching lines...) Expand 10 before | Expand all | Expand 10 after
448 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); 448 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
449 449
450 // Resume the sync loop if the network is back online. Note that we don't 450 // Resume the sync loop if the network is back online. Note that we don't
451 // need to check the type of the network as it will be checked in 451 // need to check the type of the network as it will be checked in
452 // ShouldStopSyncLoop() as soon as the loop is resumed. 452 // ShouldStopSyncLoop() as soon as the loop is resumed.
453 if (!net::NetworkChangeNotifier::IsOffline()) 453 if (!net::NetworkChangeNotifier::IsOffline())
454 StartSyncLoop(); 454 StartSyncLoop();
455 } 455 }
456 456
457 } // namespace gdata 457 } // namespace gdata
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698