From 440e4928ac89d844f79bb4377ced0a2d964c5d0a Mon Sep 17 00:00:00 2001 From: "dilmah@chromium.org" Date: Thu, 16 Sep 2010 14:21:07 +0000 Subject: Google codestyle prescribes sorting #include filenames within a section. Do it fast with following shell script: export LC_ALL=C find chrome/browser/chromeos/ -name '*.h' -o -name '*.cc' \ | xargs grep -C1 '^#include' \ | awk -F: '$2 !~ "include" { prev=""; next } ($2 <= prev) { print $1 } { prev=$2 }' \ | uniq \ | xargs -n1 sh -c 'cat "$1" \ | awk "{ tag=((/^#include/) \"_\" (/ "$1".fixed; mv -f "$1".fixed "$1"' xxx BUG=None TEST=Manual Review URL: http://codereview.chromium.org/3402010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@59646 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/chromeos/offline/offline_load_service.cc | 6 +++--- chrome/browser/chromeos/offline/offline_load_service.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'chrome/browser/chromeos/offline') diff --git a/chrome/browser/chromeos/offline/offline_load_service.cc b/chrome/browser/chromeos/offline/offline_load_service.cc index 63602f5..a000357 100644 --- a/chrome/browser/chromeos/offline/offline_load_service.cc +++ b/chrome/browser/chromeos/offline/offline_load_service.cc @@ -4,13 +4,13 @@ #include "chrome/browser/chromeos/offline/offline_load_service.h" -#include "base/singleton.h" #include "base/ref_counted.h" -#include "chrome/common/notification_service.h" +#include "base/singleton.h" #include "chrome/browser/chrome_thread.h" +#include "chrome/browser/tab_contents/navigation_controller.h" #include "chrome/browser/tab_contents/tab_contents.h" #include "chrome/browser/tab_contents/tab_util.h" -#include "chrome/browser/tab_contents/navigation_controller.h" +#include "chrome/common/notification_service.h" namespace chromeos { diff --git a/chrome/browser/chromeos/offline/offline_load_service.h b/chrome/browser/chromeos/offline/offline_load_service.h index 45baff6..d052d51 100644 --- a/chrome/browser/chromeos/offline/offline_load_service.h +++ b/chrome/browser/chromeos/offline/offline_load_service.h @@ -10,8 +10,8 @@ #include "base/ref_counted.h" #include "chrome/common/notification_observer.h" -#include "chrome/common/notification_type.h" #include "chrome/common/notification_registrar.h" +#include "chrome/common/notification_type.h" class GURL; class NavigationController; -- cgit v1.1